Skip to content
name: Publish Release to Registry
on:
release:
types: [published]
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Get release version
id: get_version
run: echo "RELEASE_VERSION=$(echo ${GITHUB_REF:10})" >> $GITHUB_ENV
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: zencrepes/zui
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
tags: 'latest,${{ env.RELEASE_VERSION }}'
buildoptions: '--label APP_VERSION=${{ env.RELEASE_VERSION }}'
buildargs: APP_VERSION_ARG=${{env.RELEASE_VERSION}}