Skip to content

Commit

Permalink
custom tag is also latest tag
Browse files Browse the repository at this point in the history
  • Loading branch information
SandroBarillaPXL committed Oct 3, 2024
1 parent 375e832 commit 31ab2e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ jobs:
run: |
if [[ -z "${{inputs.tag}}" ]]; then
echo "TAG is not provided, using latest"
echo "TAG=latest" >> $GITHUB_ENV
echo "TAG=${{ secrets.DOCKERHUB_USER }}/expertlab:latest" >> $GITHUB_ENV
else
echo "TAG is provided, using ${{inputs.tag}}"
echo "TAG=${{inputs.tag}}" >> $GITHUB_ENV
echo "TAG=${{ secrets.DOCKERHUB_USER }}/expertlab:latest,${{ secrets.DOCKERHUB_USER }}/expertlab:${{inputs.tag}}" >> $GITHUB_ENV
fi
- name: Login to Docker Hub
Expand All @@ -46,5 +46,5 @@ jobs:
uses: docker/build-push-action@v3
with:
push: true
tags: ${{ secrets.DOCKERHUB_USER }}/expertlab:${{ env.TAG }}
tags: ${{ env.TAG }}

0 comments on commit 31ab2e3

Please sign in to comment.