Skip to content

Commit

Permalink
feat(CICD): push docker image to the registry
Browse files Browse the repository at this point in the history
  • Loading branch information
panpuchkov committed Dec 23, 2023
1 parent ca7a83c commit a960535
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Docker Build Image & Push (CICDv2)
name: Docker Build & Push
permissions: write-all
'on':
push:
Expand Down Expand Up @@ -46,11 +46,12 @@ jobs:
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: panpuchkov
username: ${{ env.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Docker Push
shell: bash
run: |
set -x
echo "TODO"
IMAGE_NAME_WITH_VERSION="${{ env.IMAGE_NAME }}:latest"
docker push "${IMAGE_NAME_WITH_VERSION}"

0 comments on commit a960535

Please sign in to comment.