Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Feature/#add tag for build (#5)
Browse files Browse the repository at this point in the history
* Initial commit for digital ocean publish

* Add tag for digital ocean build
  • Loading branch information
yamelsenih authored Apr 5, 2023
1 parent 354f181 commit 98032d4
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 @@ -235,7 +235,7 @@ jobs:
- name: Build image
run: docker buildx build --platform linux/amd64,linux/amd64/v2,linux/arm64/v8 -t ${{ github.event.repository.name }} --build-arg GITHUB_DEPLOY_USER="${{ github.actor }}" --build-arg GITHUB_DEPLOY_TOKEN="${{ secrets.DEPLOY_TOKEN }}" --build-arg GITHUB_DEPLOY_REPOSITORY="${{ secrets.DEPLOY_REPOSITORY }}" -f docker/Dockerfile .
- name: Tag image
run: docker tag ${{ github.event.repository.name }} registry.digitalocean.com/${{ secrets.DIGITALOCEAN_ORGANIZATION }}/${{ github.event.repository.name }}:${{ github.event.release.tag_name }}
run: docker buildx tag ${{ github.event.repository.name }} registry.digitalocean.com/${{ secrets.DIGITALOCEAN_ORGANIZATION }}/${{ github.event.repository.name }}:${{ github.event.release.tag_name }}
- name: Push image to DO Container Registry
run: docker push registry.digitalocean.com/${{ secrets.DIGITALOCEAN_ORGANIZATION }}/${{ github.event.repository.name }}:${{ github.event.release.tag_name }}
run: docker buildx push registry.digitalocean.com/${{ secrets.DIGITALOCEAN_ORGANIZATION }}/${{ github.event.repository.name }}:${{ github.event.release.tag_name }}

0 comments on commit 98032d4

Please sign in to comment.