Github: Set correct version when building container, only build master

This commit is contained in:
Matthew Wild 2020-05-13 13:58:04 +01:00
parent 7aa2468099
commit 6ca7602882
1 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,9 @@
name: Docker image build
on: [push]
on:
push:
branches:
- master
jobs:
build:
@ -12,6 +15,8 @@ jobs:
run: >-
docker build . \
--file docker/Dockerfile \
--buildarg=BUILD_SERIES=dev \
--buildarg=BUILD_ID="$(echo "$GITHUB_SHA" | head -c 12)" \
--tag snikket/snikket:dev
- name: Log into registry
run: echo "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | docker login -u snikket --password-stdin