mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-18 23:44:59 +01:00
Fix Linux build docker tag for release builds (#1680)
This commit is contained in:
parent
4be47c7077
commit
2edaea021c
12
.github/workflows/build_linux.yaml
vendored
12
.github/workflows/build_linux.yaml
vendored
@ -28,7 +28,7 @@ jobs:
|
|||||||
hak:
|
hak:
|
||||||
runs-on: ${{ inputs.arch == 'arm64' && 'dind-l-arm64' || 'ubuntu-latest' }}
|
runs-on: ${{ inputs.arch == 'arm64' && 'dind-l-arm64' || 'ubuntu-latest' }}
|
||||||
env:
|
env:
|
||||||
HAK_DOCKER_IMAGE: ${{ format('ghcr.io/element-hq/element-desktop-dockerbuild:{0}', github.event_name == 'pull_request' && 'develop' || github.ref_name) }}
|
HAK_DOCKER_IMAGE: ghcr.io/element-hq/element-desktop-dockerbuild
|
||||||
outputs:
|
outputs:
|
||||||
cache-key: ${{ steps.cache-key.outputs.key }}
|
cache-key: ${{ steps.cache-key.outputs.key }}
|
||||||
arch: ${{ steps.config.outputs.arch }}
|
arch: ${{ steps.config.outputs.arch }}
|
||||||
@ -45,6 +45,16 @@ jobs:
|
|||||||
chmod +x $HOME/bin/yarn
|
chmod +x $HOME/bin/yarn
|
||||||
echo "$HOME/bin" >> $GITHUB_PATH
|
echo "$HOME/bin" >> $GITHUB_PATH
|
||||||
|
|
||||||
|
- name: Resolve docker image tag for push
|
||||||
|
if: github.event_name == 'push'
|
||||||
|
run: echo "HAK_DOCKER_IMAGE=$HAK_DOCKER_IMAGE:$GITHUB_REF_NAME" >> $GITHUB_ENV
|
||||||
|
- name: Resolve docker image tag for release
|
||||||
|
if: github.event_name == 'release'
|
||||||
|
run: echo "HAK_DOCKER_IMAGE=$HAK_DOCKER_IMAGE:staging" >> $GITHUB_ENV
|
||||||
|
- name: Resolve docker image tag for other triggers
|
||||||
|
if: github.event_name != 'push' && github.event_name != 'release'
|
||||||
|
run: echo "HAK_DOCKER_IMAGE=$HAK_DOCKER_IMAGE:develop" >> $GITHUB_ENV
|
||||||
|
|
||||||
- uses: nbucic/variable-mapper@0673f6891a0619ba7c002ecfed0f9f4f39017b6f
|
- uses: nbucic/variable-mapper@0673f6891a0619ba7c002ecfed0f9f4f39017b6f
|
||||||
id: config
|
id: config
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user