Skip to content

Commit

Permalink
Merge pull request #3 from kmee/ci/build_12_1
Browse files Browse the repository at this point in the history
Ci/build 12 1
  • Loading branch information
luismalta authored Oct 24, 2023
2 parents 96fc4de + 04070c1 commit 4adbd5f
Showing 1 changed file with 29 additions and 6 deletions.
35 changes: 29 additions & 6 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,25 +61,48 @@ jobs:

# Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
id: meta
- name: Extract Docker metadata 12.1
id: meta-12-1
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=12.1
- name: Extract Docker metadata 16.1
id: meta-16-1
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=16.1
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: Build and push Docker image
id: build-and-push
- name: Build and push 16.1 Docker image
id: build-and-push-16-1
uses: docker/build-push-action@ac9327eae2b366085ac7f6a2d02df8aa8ead720a
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
tags: ${{ steps.meta-16-1.outputs.tags }}
labels: ${{ steps.meta-16-1.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
file: 16.1.Dockerfile
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: Build and push 12.1 Docker image
id: build-and-push-12-1
uses: docker/build-push-action@ac9327eae2b366085ac7f6a2d02df8aa8ead720a
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta-12-1.outputs.tags }}
labels: ${{ steps.meta-12-1.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
file: 12.1.Dockerfile


# Sign the resulting Docker image digest except on PRs.
Expand Down

0 comments on commit 4adbd5f

Please sign in to comment.