Skip to content

Commit

Permalink
Update build command - patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Dcrammer777 committed Oct 17, 2023
1 parent 39788c2 commit baaa734
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,15 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Extract Repo Name
id: repo_name
run: echo "::set-output name=REPO_NAME::$(echo $GITHUB_REPOSITORY | cut -d '/' -f2)"

- name: Bump version and push tag
id: bump_version
uses: anothrNick/github-tag-action@1.34.0
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
DEFAULT_BUMP: patch # Default bump type (major, minor, patch)

Expand All @@ -26,7 +30,7 @@ jobs:
echo ${{ secrets.DOCR_TOKEN }} | docker login registry.digitalocean.com -u ${{ secrets.DOCR_TOKEN }} --password-stdin
- name: Build Docker Image with New Version
run: docker build -t registry.digitalocean.com/dc-containers-test/text-next-app:${{ steps.bump_version.outputs.newTag }} .
run: docker build -t registry.digitalocean.com/dc-containers-test/${{ steps.repo_name.outputs.REPO_NAME }}:${{ steps.bump_version.outputs.newTag }} .

- name: Push Docker Image to DOCR
run: docker push registry.digitalocean.com/dc-containers-test/text-next-app:${{ steps.bump_version.outputs.newTag }}
run: docker push registry.digitalocean.com/dc-containers-test/${{ steps.repo_name.outputs.REPO_NAME }}:${{ steps.bump_version.outputs.newTag }}

0 comments on commit baaa734

Please sign in to comment.