Skip to content

Commit

Permalink
add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Gryczan committed Aug 20, 2020
1 parent 5cec1e8 commit bc24a32
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish Images
on:
release:
types: [published, created, edited, released, prereleased]

jobs:
publish:
name: Build and Publish Images
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: git fetch --prune --unshallow
- name: Get release version
id: get_version
run: echo ::set-env name=RELEASE_VERSION::$(git describe --tags --abbrev=0)
- name: Build and Publish
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: sgryczan/trident-installer
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
registry: docker.io
dockerfile: build/Dockerfile
tags: "latest,${{ env.RELEASE_VERSION }}"

0 comments on commit bc24a32

Please sign in to comment.