short SHA
This commit is contained in:
parent
289f1a438f
commit
f3718ed680
1 changed files with 9 additions and 2 deletions
|
|
@ -8,6 +8,7 @@ on:
|
||||||
env:
|
env:
|
||||||
DOCKER_TLS_CERTDIR: /certs
|
DOCKER_TLS_CERTDIR: /certs
|
||||||
IMAGE_TAG: ${{ github.sha }}
|
IMAGE_TAG: ${{ github.sha }}
|
||||||
|
SHORT_SHA: ${{ github.sha }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
splatoon:
|
splatoon:
|
||||||
|
|
@ -31,10 +32,13 @@ jobs:
|
||||||
- name: Login to registry
|
- name: Login to registry
|
||||||
run: docker login -u ${{ secrets.PACKAGE_USER }} -p ${{ secrets.PACKAGE_PWD }} git.spbr.net
|
run: docker login -u ${{ secrets.PACKAGE_USER }} -p ${{ secrets.PACKAGE_PWD }} git.spbr.net
|
||||||
|
|
||||||
|
- name: Set short SHA
|
||||||
|
run: echo "SHORT_SHA=${GITHUB_SHA::6}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Build Splatoon edition
|
- name: Build Splatoon edition
|
||||||
env:
|
env:
|
||||||
CI_REGISTRY_IMAGE: git.spbr.net/spacebar/rust-nex
|
CI_REGISTRY_IMAGE: git.spbr.net/spacebar/rust-nex
|
||||||
CI_COMMIT_SHORT_SHA: ${{ github.sha }}
|
CI_COMMIT_SHORT_SHA: ${{ env.SHORT_SHA }}
|
||||||
run: ./.ci-scripts/make-edition.sh splatoon
|
run: ./.ci-scripts/make-edition.sh splatoon
|
||||||
|
|
||||||
friends:
|
friends:
|
||||||
|
|
@ -55,11 +59,14 @@ jobs:
|
||||||
~/.local/share/containers/storage
|
~/.local/share/containers/storage
|
||||||
key: image-cache
|
key: image-cache
|
||||||
|
|
||||||
|
- name: Set short SHA
|
||||||
|
run: echo "SHORT_SHA=${GITHUB_SHA::6}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Login to registry
|
- name: Login to registry
|
||||||
run: podman login -u ${{ secrets.PACKAGE_USER }} -p ${{ secrets.PACKAGE_PWD }} git.spbr.net
|
run: podman login -u ${{ secrets.PACKAGE_USER }} -p ${{ secrets.PACKAGE_PWD }} git.spbr.net
|
||||||
|
|
||||||
- name: Build Friends edition
|
- name: Build Friends edition
|
||||||
env:
|
env:
|
||||||
CI_REGISTRY_IMAGE: git.spbr.net/spacebar/rust-nex
|
CI_REGISTRY_IMAGE: git.spbr.net/spacebar/rust-nex
|
||||||
CI_COMMIT_SHORT_SHA: ${{ github.sha }}
|
CI_COMMIT_SHORT_SHA: ${{ env.SHORT_SHA }}
|
||||||
run: ./.ci-scripts/make-edition.sh friends
|
run: ./.ci-scripts/make-edition.sh friends
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue