dockerhub integration
All checks were successful
Build and Test / build-image (push) Successful in 26s

This commit is contained in:
2025-12-31 10:44:32 +03:00
parent 28048a300c
commit 48ab7a08de

View File

@@ -11,12 +11,16 @@ jobs:
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v4 # Uses a standard action to check out the repository code uses: actions/checkout@v4 # Uses a standard action to check out the repository code
- name: Login to the DockerHub registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build Docker image - name: Build Docker image
run: | run: |
# docker build -t testimage:latest . docker build -t ${{ variables.DOCKERHUB_IMAGENAME }} .
docker run --rm testimage:latest docker push
docker images
- name: Run tests (example) - name: Run tests (example)
run: echo "Tests passed!" run: docker run --rm ${{ variables.DOCKERHUB_IMAGENAME }}