Closed abuhamsa closed 3 years ago
Maybe use https://github.com/elgohr/Publish-Docker-Github-Action#tag_names and another step for latest?
Hi, wow that was way faster than expected.
I tried the following:
name: Publish to DockerHub with a verstion-tag and latest-tag
on:
release:
types: [published]
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Publish to Registry with version-tag
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: abuhamsa/xteve-lazystream
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tag_names: true
- name: Publish to Registry with latest-tag
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: abuhamsa/xteve-lazystream
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tags: "latest"
works now like a charm :) still I dont get why the other didn't work.
Thank you very much! Have a nice day
Hi I'm trying to publish my dockerimage through this action. It already works and publishes my image to dockerhub.
But I want to have it released with the tags:
So my Action looks like this:
I'll push my changes to github and then creating a new release:
So I excpect that it will be published with the tags "latest" and "v.1.1.7". But the output of the action shows the following:
So there is an Warning about the "pre"-Part (which is used to even get the tag) and then the result is an empty string.
Am I doing this wrong or is it maybe broken for all?