Skip to content

Commit

Permalink
Upgraded build actions (#72)
Browse files Browse the repository at this point in the history
Co-authored-by: Fedor Batonogov <[email protected]>
  • Loading branch information
github-actions[bot] and batonogov authored Feb 24, 2024
1 parent 2fa19df commit 808863b
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 18 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/docker-image-linux-ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ name: Docker Image CI Linux ghcr.io

on:
push:
tags: [ 'v*.*.*' ]
tags:
- "v*.*.*"
branches:
- "main"

env:
# Use docker.io for Docker Hub if empty
Expand Down Expand Up @@ -80,9 +83,7 @@ jobs:
linux/ppc64le
linux/s390x
push: ${{ github.event_name != 'pull_request' }}
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}-slim
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest-slim
tags: ${{ steps.meta.outputs.tags }}-slim
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
Expand All @@ -102,9 +103,7 @@ jobs:
linux/ppc64le
linux/s390x
push: ${{ github.event_name != 'pull_request' }}
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
5 changes: 4 additions & 1 deletion .github/workflows/docker-image-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ name: Docker Image CI Linux docker.io

on:
push:
tags: [ 'v*.*.*' ]
tags:
- "v*.*.*"
branches:
- "main"

jobs:
docker:
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/docker-image-osx-ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ name: Docker Image CI OSX ghcr.io

on:
push:
tags: [ 'v*.*.*' ]
tags:
- "v*.*.*"
branches:
- "main"

env:
# Use docker.io for Docker Hub if empty
Expand Down Expand Up @@ -73,9 +76,7 @@ jobs:
platforms: |
linux/amd64
push: ${{ github.event_name != 'pull_request' }}
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
5 changes: 4 additions & 1 deletion .github/workflows/docker-image-osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ name: Docker Image CI OSX docker.io

on:
push:
tags: [ 'v*.*.*' ]
tags:
- "v*.*.*"
branches:
- "main"

jobs:
docker:
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/docker-image-windows-ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ name: Docker Image CI Windows ghcr.io

on:
push:
tags: [ 'v*.*.*' ]
tags:
- "v*.*.*"
branches:
- "main"

env:
# Use docker.io for Docker Hub if empty
Expand Down Expand Up @@ -73,9 +76,7 @@ jobs:
platforms: |
linux/amd64
push: ${{ github.event_name != 'pull_request' }}
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
5 changes: 4 additions & 1 deletion .github/workflows/docker-image-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ name: Docker Image CI Windows docker.io

on:
push:
tags: [ 'v*.*.*' ]
tags:
- "v*.*.*"
branches:
- "main"

jobs:
docker:
Expand Down

0 comments on commit 808863b

Please sign in to comment.