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 8ec595c
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 @@ -41,7 +41,7 @@ jobs:
shell: bash
run: |
set -x
docker build -t ${{ env.IMAGE_NAME }} .
docker build -t "panpuchkov/${{ env.IMAGE_NAME }}" .
- name: Log in to Docker Hub
uses: docker/login-action@v3
Expand All @@ -53,4 +53,5 @@ jobs:
shell: bash
run: |
set -x
echo "TODO"
IMAGE_NAME_WITH_VERSION="panpuchkov/${{ env.IMAGE_NAME }}:latest"
docker push "${IMAGE_NAME_WITH_VERSION}"

0 comments on commit 8ec595c

Please sign in to comment.