Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
RaniAgus authored Nov 16, 2023
1 parent e91dfa4 commit 16487ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ jobs:
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}

- name: Build container image
run: docker build -t ${{ secrets.REGISTRY_NAME }}/$(echo $IMAGE_NAME | tr '-' '_'):$(echo $GITHUB_SHA | head -c7) .
run: docker build -t registry.digitalocean.com/${{ secrets.REGISTRY_NAME }}/$(echo $IMAGE_NAME | tr '-' '_'):$(echo $GITHUB_SHA | head -c7) .

- name: Log in to DigitalOcean Container Registry with short-lived credentials
run: doctl registry login --expiry-seconds 1200

- name: Push image to DigitalOcean Container Registry
run: docker push ${{ secrets.REGISTRY_NAME }}/$(echo $IMAGE_NAME | tr '-' '_'):$(echo $GITHUB_SHA | head -c7)
run: docker push registry.digitalocean.com/${{ secrets.REGISTRY_NAME }}/$(echo $IMAGE_NAME | tr '-' '_'):$(echo $GITHUB_SHA | head -c7)

0 comments on commit 16487ec

Please sign in to comment.