Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

Commit

Permalink
workflows: push docker image on release
Browse files Browse the repository at this point in the history
  • Loading branch information
tgeoghegan committed Sep 28, 2020
1 parent 0339d09 commit 5a45f60
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ jobs:
- name: build
uses: docker/build-push-action@v2
with:
file: facilitator/Dockerfile
file: ./facilitator/Dockerfile
27 changes: 27 additions & 0 deletions .github/workflows/push-docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: push-docker-image

on:
release:
types: [published]

jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Set up Docker build
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: isrgautomaton
password: ${{ secrets.ISRG_AUTOMATON_DOCKERHUB_AUTH_TOKEN }}
- name: build
uses: docker/build-push-action@v2
with:
file: ./facilitator/Dockerfile
push: true
tags: letsencrypt/prio-facilitator:${{ steps.get_version.outputs.VERSION }}

0 comments on commit 5a45f60

Please sign in to comment.