Skip to content

Commit

Permalink
add push to ghcr
Browse files Browse the repository at this point in the history
  • Loading branch information
tuanngocptn committed May 10, 2024
1 parent e765b1e commit aeacb0e
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,24 @@ jobs:
images: tuanngocptn/sentry-telegram-webhook

- name: Build and push Docker image
id: push
id: push-docker-hub
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: tuanngocptn
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image
id: push-ghcr
uses: docker/build-push-action@v5
with:
context: .
Expand All @@ -39,5 +56,5 @@ jobs:
uses: actions/attest-build-provenance@v1
with:
subject-name: tuanngocptn/sentry-telegram-webhook
subject-digest: ${{ steps.push.outputs.digest }}
subject-digest: ${{ steps.push-ghcr.outputs.digest }}
push-to-registry: true

0 comments on commit aeacb0e

Please sign in to comment.