mirror of
https://github.com/HangarMC/Hangar.git
synced 2025-01-24 14:24:47 +08:00
Use registry var
This commit is contained in:
parent
1d30e77101
commit
ba00953833
7
.github/workflows/deploy.yml
vendored
7
.github/workflows/deploy.yml
vendored
@ -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 }}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user