Skip to content

Commit

Permalink
Merge pull request #100 from renproject/feat/multichain-image-tagged
Browse files Browse the repository at this point in the history
feat: trigger docker build on new tag | tag image
  • Loading branch information
roynalnaruto authored Jun 9, 2021
2 parents 53fb528 + 040f4a7 commit 3a0bc6f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
name: Docker Build
on:
push:
branches:
- master
tags:
- 'v*.*.*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set output
id: push-info
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

Expand All @@ -24,7 +30,7 @@ jobs:
uses: docker/build-push-action@v2
with:
push: true
tags: renbot/multichain:latest
tags: renbot/multichain:${{ steps.push-info.outputs.tag }}
secrets: |
GIT_AUTH_TOKEN=${{ secrets.PERSONAL_ACCESS_TOKEN }}
build-args: |
Expand Down

0 comments on commit 3a0bc6f

Please sign in to comment.