Skip to content

Workflow file for this run

name: Publish Docker image on Release
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Get the version from tag
id: get_version
run: echo ::set-env name=VERSION::${GITHUB_REF#refs/tags/}
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@master
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
with:
name: djkormo/adcs-issuer
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
buildargs: VERSION
tags: "latest,${{ env.VERSION }}"