Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
idoyo7 authored Aug 4, 2024
1 parent c2ab9d0 commit f06bdc3
Showing 1 changed file with 21 additions and 11 deletions.
32 changes: 21 additions & 11 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,27 @@ jobs:
username: ${{ vars.USER }}
password: ${{ secrets.TOKEN }}

# - name: Log in to Harbor
# run: echo "${{ secrets.TOKEN }}" | docker login "${{ env.URL }}" -u "${{ env.USER }}" --password-stdin
# env:
# USER: ${{ vars.USER }}
# URL: ${{ vars.URL }}
# TOKEN: ${{ secrets.TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v4


# - name: Build and push Docker image
# uses: docker/build-push-action@v4
# with:
# context: .
# file: ./Dockerfile
# push: true
# tags: ${{ env.URL }}/utility/test:latest

- name: Build and push to Container Registry
uses: docker/[email protected]
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ env.URL }}/utility/test:latest
tags: ${{ env.URL }}/utility/test:${{ github.sha }}

# - name: Build and push Docker image
# uses: docker/build-push-action@v4
# with:
# context: .
# file: ./Dockerfile
# push: true
# tags: ${{ env.URL }}/utility/test:latest

0 comments on commit f06bdc3

Please sign in to comment.