Skip to content

Commit

Permalink
Add release Github action (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajmaddaford authored Apr 20, 2021
1 parent c70bf71 commit 70c8416
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Release

on:
release:
types: [published]

jobs:
docker-push:
runs-on: ubuntu-latest
env:
TAG: ${{ github.event.release.tag_name }}
steps:
- uses: actions/checkout@v2
- name: Build
run: docker build -t onsdigital/eq-questionnaire-validator:$TAG .
- name: Push
run: |
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
echo "Pushing with tag [$TAG]"
docker push onsdigital/eq-questionnaire-validator:$TAG

0 comments on commit 70c8416

Please sign in to comment.