Use registry var

This commit is contained in:
Michael 2022-12-22 16:38:24 +01:00
parent 1d30e77101
commit ba00953833
No known key found for this signature in database

View File

@ -14,6 +14,9 @@ concurrency:
group: ${{ github.ref }} group: ${{ github.ref }}
cancel-in-progress: true cancel-in-progress: true
env:
REGISTRY: ghcr.io
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -109,7 +112,7 @@ jobs:
id: frontend-meta id: frontend-meta
uses: docker/metadata-action@v4 uses: docker/metadata-action@v4
with: with:
images: ghcr.io/HangarMC/hangar-frontend images: ${{ env.REGISTRY }}/HangarMC/hangar-frontend
tags: | tags: |
type=sha,enable=true,format=short,prefix=${{ env.GITHUB_HEAD_REF }}-,suffix=-${{ steps.timestamp.outputs.timestamp }} type=sha,enable=true,format=short,prefix=${{ env.GITHUB_HEAD_REF }}-,suffix=-${{ steps.timestamp.outputs.timestamp }}
@ -128,7 +131,7 @@ jobs:
id: backend-meta id: backend-meta
uses: docker/metadata-action@v4 uses: docker/metadata-action@v4
with: with:
images: ghcr.io/HangarMC/hangar-backend images: ${{ env.REGISTRY }}/HangarMC/hangar-backend
tags: | tags: |
type=sha,enable=true,format=short,prefix=${{ env.GITHUB_HEAD_REF }}-,suffix=-${{ steps.timestamp.outputs.timestamp }} type=sha,enable=true,format=short,prefix=${{ env.GITHUB_HEAD_REF }}-,suffix=-${{ steps.timestamp.outputs.timestamp }}