Skip to content

Commit

Permalink
try with with
Browse files Browse the repository at this point in the history
  • Loading branch information
Marko Paulic committed Sep 20, 2024
1 parent add97a7 commit 1f00745
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/reusable-workflow-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,21 @@ jobs:
password: ${{ secrets.ACR_PASSWORD }}

- name: Build Docker Image
run: docker build -t $REGISTRY/${{ inputs.image-name }}:$IMAGE_TAG ${{ inputs.dockerfile }}
with:
container-name: ${{ inputs.container-name }}
dockerfile: ${{ inputs.cdockerfile }}
run: docker build -t $REGISTRY/$container-name:$IMAGE_TAG $dockerfile

- name: Push Docker image
with:
container-name: ${{ inputs.container-name }}
run: |
docker push $REGISTRY/${{ inputs.container-name }}:$IMAGE_TAG
docker push $REGISTRY/$container-name:$IMAGE_TAG
- name: Tag and push Docker image as latest
# if: github.ref == 'refs/heads/main' # TODO: uncomment once we are done with development
with:
container-name: ${{ inputs.container-name }}
run: |
docker tag $REGISTRY/${{ inputs.image-name }}:$IMAGE_TAG $REGISTRY/${{ inputs.container-name }}:latest
docker push $REGISTRY/${{ inputs.image-name }}:latest
docker tag $REGISTRY/$container-name:$IMAGE_TAG $REGISTRY/$container-name:latest
docker push $REGISTRY/$container-name:latest

0 comments on commit 1f00745

Please sign in to comment.