Skip to content

Commit

Permalink
Fix github actions' workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
srisco committed Jun 17, 2020
1 parent 226a34a commit 8399946
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: build

on:
push:
branches: master
branches: [master]
release:

jobs:
Expand All @@ -23,7 +23,7 @@ jobs:
fi
TAGS="--tag ${DOCKER_IMAGE}:latest"
if [[ $VERSION =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then
if [[ -z $VERSION ]]; then
TAGS="$TAGS --tag ${DOCKER_IMAGE}:${VERSION}"
fi
Expand All @@ -34,6 +34,9 @@ jobs:
--build-arg GIT_COMMIT=${GITHUB_SHA::8} \
${TAGS} .
- name: Set up Docker Buildx
uses: crazy-max/[email protected]

- name: Login
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
Expand All @@ -44,6 +47,7 @@ jobs:
run: docker buildx build --output "type=image,push=true" ${{ steps.prepare.outputs.buildx_args }}

- name: Clear
if: always()
run: rm -f ${HOME}/.docker/config.json


0 comments on commit 8399946

Please sign in to comment.