-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor main, pr and release workflow, the Pipeline, Dagger. --------- Signed-off-by: Vadim Bauer <vb@container-registry.com>
- Loading branch information
Showing
6 changed files
with
248 additions
and
194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Publish and Sign Snapshot Image | ||
description: Publishes and signs a snapshot image using Dagger. | ||
|
||
inputs: | ||
IMAGE_TAGS: | ||
description: 'Tags for the image, e.g. "latest, v1.0.0"' | ||
required: true | ||
GITHUB_TOKEN: | ||
description: 'GitHub token' | ||
required: true | ||
REGISTRY_PASSWORD: | ||
description: 'Registry password' | ||
required: true | ||
REGISTRY_ADDRESS: | ||
description: 'Registry address' | ||
required: true | ||
REGISTRY_USERNAME: | ||
description: 'Registry username' | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Dagger Version | ||
uses: sagikazarmark/dagger-version-action@v0.0.1 | ||
|
||
- name: Install Cosign | ||
uses: sigstore/cosign-installer@v3.7.0 | ||
|
||
- name: Check Env Variables | ||
shell: bash | ||
env: | ||
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }} | ||
run: cosign env | ||
|
||
- name: Publish and Sign Snapshot Image | ||
uses: dagger/dagger-for-github@v6 | ||
env: | ||
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }} | ||
REGISTRY_ADDRESS: ${{ inputs.REGISTRY_ADDRESS }} | ||
REGISTRY_USERNAME: ${{ inputs.REGISTRY_USERNAME }} | ||
REGISTRY_PASSWORD: ${{ inputs.REGISTRY_PASSWORD }} | ||
IMAGE_TAGS: ${{ inputs.IMAGE_TAGS }} | ||
with: | ||
version: ${{ steps.dagger_version.outputs.version }} | ||
verb: call | ||
args: "publish-image-and-sign \ | ||
--registry='${{ env.REGISTRY_ADDRESS }}' \ | ||
--registry-username='${{ env.REGISTRY_USERNAME }}' \ | ||
--registry-password=env:REGISTRY_PASSWORD \ | ||
--image-tags='${{ env.IMAGE_TAGS}}' \ | ||
--github-token=env:GITHUB_TOKEN \ | ||
--actions-id-token-request-url=$ACTIONS_ID_TOKEN_REQUEST_URL \ | ||
--actions-id-token-request-token=env:ACTIONS_ID_TOKEN_REQUEST_TOKEN" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ updates: | |
- package-ecosystem: gomod | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
interval: weekly |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.