Skip to content

Commit

Permalink
Refine workflows
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Solymos <psolymos@gmail.com>
  • Loading branch information
psolymos committed Jul 5, 2024
1 parent 0f5b791 commit 92765b7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 8 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/py-shiny.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@ jobs:
org.opencontainers.image.title=Faithful
org.opencontainers.image.description=Old Faithful Shiny app
org.opencontainers.image.vendor=Hosting Shiny Book Project
images: |
ghcr.io/${{ github.repository }}/${{ env.SHINY_SETUP }}
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=ref,event=branch
type=ref,event=pr
- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v3
Expand All @@ -44,8 +53,6 @@ jobs:
with:
context: ./${{ env.SHINY_SETUP }}
file: ./${{ env.SHINY_SETUP }}/Dockerfile
push: true
tags: |
ghcr.io/${{ github.repository }}/${{ env.SHINY_SETUP }}:${{ github.ref_name }}
ghcr.io/${{ github.repository }}/${{ env.SHINY_SETUP }}:latest
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
15 changes: 11 additions & 4 deletions .github/workflows/r-shiny.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@ jobs:
org.opencontainers.image.title=Faithful
org.opencontainers.image.description=Old Faithful Shiny app
org.opencontainers.image.vendor=Hosting Shiny Book Project
images: |
ghcr.io/${{ github.repository }}/${{ env.SHINY_SETUP }}
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=ref,event=branch
type=ref,event=pr
- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v3
Expand All @@ -44,8 +53,6 @@ jobs:
with:
context: ./${{ env.SHINY_SETUP }}
file: ./${{ env.SHINY_SETUP }}/Dockerfile
push: true
tags: |
ghcr.io/${{ github.repository }}/${{ env.SHINY_SETUP }}:${{ github.ref_name }}
ghcr.io/${{ github.repository }}/${{ env.SHINY_SETUP }}:latest
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 92765b7

Please sign in to comment.