Skip to content

Commit

Permalink
ci: publish exp-deps image for all non-master branches
Browse files Browse the repository at this point in the history
Signed-off-by: Rongrong <[email protected]>
  • Loading branch information
Rongronggg9 committed Nov 10, 2023
1 parent 4134ba2 commit 7bf9655
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/publish-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,25 +52,25 @@ jobs:
cache-from: type=gha,scope=docker-release
cache-to: type=gha,scope=docker-release,mode=max
- name: Set Docker meta (exp-deps)
if: ${{ endsWith(github.ref, 'dev') }}
id: meta-fpe
if: ${{ startsWith(github.ref, 'refs/heads') && github.ref_name != 'master' }}
id: meta-exp
uses: docker/metadata-action@v5
with:
images: ${{ secrets.DOCKER_USERNAME }}/rss-to-telegram
flavor: latest=false
tags: type=raw,value=exp-deps,enable=true
tags: type=raw,value=${{ github.ref_name != 'dev' && format('{0}-', github.ref_name) || '' }}exp-deps,enable=true
- name: Push to Docker Hub (exp-deps)
if: ${{ endsWith(github.ref, 'dev') }}
if: ${{ startsWith(github.ref, 'refs/heads') && github.ref_name != 'master' }}
uses: docker/build-push-action@v5
with:
push: true
context: .
build-args: EXP_DEPS=1
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta-fpe.outputs.tags }}
labels: ${{ steps.meta-fpe.outputs.labels }}
cache-from: type=registry,ref=${{ secrets.DOCKER_USERNAME }}/rss-to-telegram:exp-deps
cache-to: type=inline,ref=${{ secrets.DOCKER_USERNAME }}/rss-to-telegram:exp-deps
tags: ${{ steps.meta-exp.outputs.tags }}
labels: ${{ steps.meta-exp.outputs.labels }}
cache-from: type=registry,ref=${{ steps.meta-exp.outputs.tags[0] }}
cache-to: type=inline

description:
name: Update repository description on Docker Hub
Expand Down

0 comments on commit 7bf9655

Please sign in to comment.