Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

Commit

Permalink
feat: add github action for publishing builds to docker hub
Browse files Browse the repository at this point in the history
  • Loading branch information
brianmcgee committed May 2, 2020
1 parent 23ae9a1 commit cbc5d01
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish to Registry
on:
release:
types: [published]
push:
branches:
- master
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Get release version
id: get_version
run: echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF:10})
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: 41north/exflo
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
dockerfile: docker/exflo/Dockerfile
tags: "latest,${{ env.RELEASE_VERSION }}"

0 comments on commit cbc5d01

Please sign in to comment.