1
0

Add version support for the docker builds & local builds. (#128)

Add experimental support for github actions
This commit is contained in:
Redblueflame
2021-03-29 16:51:49 +02:00
committed by GitHub
parent bb8c0d264e
commit 0834759e1a
4 changed files with 28 additions and 6 deletions

View File

@@ -23,6 +23,14 @@ jobs:
images: |
ghcr.io/modrinth/knossos
docker.io/modrinth/knossos
-
name: Get branch name
id: vars
run: echo ::set-output name=short_ref::${GITHUB_REF#refs/*/}
-
name: Get short SHA
id: slug
run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)"
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
@@ -53,3 +61,5 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}
build-args: |
VERSION_ID=${{ steps.vars.outputs.short_ref }}-${{ steps.slug.outputs.sha8 }}