mirror of
https://github.com/HangarMC/Hangar.git
synced 2024-11-27 06:01:08 +08:00
GHA is dumb, use our own variable
This commit is contained in:
parent
4fb40f3c7d
commit
e29a9f5495
5
.github/workflows/deploy.yml
vendored
5
.github/workflows/deploy.yml
vendored
@ -16,6 +16,7 @@ concurrency:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: ghcr.io
|
REGISTRY: ghcr.io
|
||||||
|
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -114,7 +115,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
images: ${{ env.REGISTRY }}/HangarMC/hangar-frontend
|
images: ${{ env.REGISTRY }}/HangarMC/hangar-frontend
|
||||||
tags: |
|
tags: |
|
||||||
type=sha,enable=true,format=short,prefix=${{ env.GITHUB_REF_NAME }}-,suffix=-${{ steps.timestamp.outputs.timestamp }}
|
type=sha,enable=true,format=short,prefix=${{ env.BRANCH_NAME }}-,suffix=-${{ steps.timestamp.outputs.timestamp }}
|
||||||
|
|
||||||
- name: Build and push frontend Dockerfile
|
- name: Build and push frontend Dockerfile
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v3
|
||||||
@ -133,7 +134,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
images: ${{ env.REGISTRY }}/HangarMC/hangar-backend
|
images: ${{ env.REGISTRY }}/HangarMC/hangar-backend
|
||||||
tags: |
|
tags: |
|
||||||
type=sha,enable=true,format=short,prefix=${{ env.GITHUB_REF_NAME }}-,suffix=-${{ steps.timestamp.outputs.timestamp }}
|
type=sha,enable=true,format=short,prefix=${{ env.BRANCH_NAME }}-,suffix=-${{ steps.timestamp.outputs.timestamp }}
|
||||||
|
|
||||||
- name: Build and push backend Dockerfile
|
- name: Build and push backend Dockerfile
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v3
|
||||||
|
Loading…
Reference in New Issue
Block a user