Skip to content

Commit

Permalink
split registry from account name in image build #125
Browse files Browse the repository at this point in the history
  • Loading branch information
akyriako committed Oct 5, 2024
1 parent 6625296 commit a6c7e4f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
file: ./Dockerfile
push: true
tags: |
${{ vars.DOCKERHUB_USERNAME }}/${{ vars.IMG_NAME }}:${{ vars.APP_VERSION }}.${{github.run_number}}-${{ steps.commit_hash.outputs.short }}-preview
${{ vars.DOCKERHUB_REGISTRY }}/${{ vars.DOCKERHUB_USERNAME }}/${{ vars.IMG_NAME }}:${{ vars.APP_VERSION }}.${{github.run_number}}-${{ steps.commit_hash.outputs.short }}-preview
build-stable:
environment: stable
Expand Down Expand Up @@ -127,8 +127,8 @@ jobs:
file: ./Dockerfile
push: true
tags: |
${{ vars.DOCKERHUB_USERNAME }}/${{ vars.IMG_NAME }}:latest
${{ vars.DOCKERHUB_USERNAME }}/${{ vars.IMG_NAME }}:${{ vars.APP_VERSION }}.${{github.run_number}}-${{ steps.commit_hash.outputs.short }}-stable
${{ vars.DOCKERHUB_REGISTRY }}/${{ vars.DOCKERHUB_USERNAME }}/${{ vars.IMG_NAME }}:latest
${{ vars.DOCKERHUB_REGISTRY }}/${{ vars.DOCKERHUB_USERNAME }}/${{ vars.IMG_NAME }}:${{ vars.APP_VERSION }}.${{github.run_number}}-${{ steps.commit_hash.outputs.short }}-stable
# - name: Image Digest
# run: echo ${{ steps.docker_build.outputs.digest }}
Expand Down Expand Up @@ -160,7 +160,7 @@ jobs:
- name: Update Charts and Commit Changes
id: update_charts
env:
image: ${{ vars.DOCKERHUB_USERNAME }}\/${{ vars.IMG_NAME }}
image: ${{ vars.DOCKERHUB_REGISTRY }}\/${{ vars.DOCKERHUB_USERNAME }}\/${{ vars.IMG_NAME }}
run: |
# docusaurus
sed -i 's/^version: .*/version: ${{ vars.APP_VERSION }}.${{github.run_number}}/' ./charts/docusaurus/Chart.yaml
Expand Down

0 comments on commit a6c7e4f

Please sign in to comment.