|
|
|
@@ -10,7 +10,7 @@ on:
|
|
|
|
|
push:
|
|
|
|
|
branches: ["main"]
|
|
|
|
|
# Publish semver tags as releases.
|
|
|
|
|
tags: ["v*.*.*"]
|
|
|
|
|
tags: ["v*"]
|
|
|
|
|
|
|
|
|
|
env:
|
|
|
|
|
REGISTRY: ghcr.io/asosnovsky
|
|
|
|
@@ -30,25 +30,25 @@ jobs:
|
|
|
|
|
- name: Checkout repository
|
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
- name: Install cosign
|
|
|
|
|
uses: sigstore/cosign-installer@e1523de7571e31dbe865fd2e80c5c7c23ae71eb4 # v3.4.0
|
|
|
|
|
uses: sigstore/cosign-installer@59acb6260d9c0ba8f4a2f9d9b48431a222b68e20 # v3.5.0
|
|
|
|
|
with:
|
|
|
|
|
cosign-release: "v1.13.1"
|
|
|
|
|
- name: Setup Docker buildx
|
|
|
|
|
uses: docker/setup-buildx-action@0d103c3126aa41d772a8362f6aa67afac040f80c
|
|
|
|
|
uses: docker/setup-buildx-action@5138f76647652447004da686b2411557eaf65f33
|
|
|
|
|
- name: Log into registry ${{ env.REGISTRY }}
|
|
|
|
|
uses: docker/login-action@5139682d94efc37792e6b54386b5b470a68a4737
|
|
|
|
|
uses: docker/login-action@70fccc794acd729b2b22dd6a326895f286447728
|
|
|
|
|
with:
|
|
|
|
|
registry: ${{ env.REGISTRY }}
|
|
|
|
|
username: ${{ github.actor }}
|
|
|
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
- name: Extract Docker metadata
|
|
|
|
|
id: meta
|
|
|
|
|
uses: docker/metadata-action@3f6690a76cbcbe44da6bac853d66df365ab3af27
|
|
|
|
|
uses: docker/metadata-action@f7b4ed12385588c3f9bc252f0a2b520d83b52d48
|
|
|
|
|
with:
|
|
|
|
|
images: ${{ env.REGISTRY }}/${{ matrix.project }}
|
|
|
|
|
- name: Build and push Docker image
|
|
|
|
|
id: build-and-push
|
|
|
|
|
uses: docker/build-push-action@ac9327eae2b366085ac7f6a2d02df8aa8ead720a
|
|
|
|
|
uses: docker/build-push-action@2a53c6ccda456d31fb62eedc658aae06e238b7bd
|
|
|
|
|
with:
|
|
|
|
|
context: ${{ matrix.project }}
|
|
|
|
|
push: ${{ github.event_name != 'pull_request' }}
|
|
|
|
|