-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
78 additions
and
29 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
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
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 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 |
---|---|---|
|
@@ -4,6 +4,15 @@ on: | |
push: | ||
branches: [main] | ||
|
||
permissions: | ||
contents: read | ||
issues: read | ||
packages: write | ||
pull-requests: read | ||
statuses: write | ||
# FIXME: This is a workaround for having workflow actions. See https://github.com/orgs/community/discussions/38659 | ||
id-token: write | ||
|
||
jobs: | ||
ci: | ||
name: Continuous Integration | ||
|
@@ -15,6 +24,12 @@ jobs: | |
uses: ./.github/workflows/__shared-get-available-images-matrix.yml | ||
|
||
clean: | ||
# FIXME: This is a workaround for having workflow actions. See https://github.com/orgs/community/discussions/38659 | ||
permissions: | ||
id-token: write | ||
contents: read | ||
pull-requests: read | ||
packages: write | ||
needs: get-available-images-matrix | ||
uses: hoverkraft-tech/ci-github-container/.github/workflows/[email protected] | ||
with: | ||
|
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,26 @@ | ||
name: Need fix to Issue | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
inputs: | ||
#checkov:skip=CKV_GHA_7: required | ||
manual-commit-ref: | ||
description: "The SHA of the commit to get the diff for" | ||
required: true | ||
manual-base-ref: | ||
description: "By default, the commit entered above is compared to the one directly before it; to go back further, enter an earlier SHA here" | ||
required: false | ||
|
||
permissions: | ||
contents: read | ||
issues: write | ||
|
||
jobs: | ||
main: | ||
uses: hoverkraft-tech/ci-github-common/.github/workflows/[email protected] | ||
with: | ||
manual-commit-ref: ${{ inputs.manual-commit-ref }} | ||
manual-base-ref: ${{ inputs.manual-base-ref }} |
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 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,6 +3,14 @@ name: • 🛫 Release | |
on: | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: write | ||
issues: read | ||
packages: write | ||
pull-requests: read | ||
# FIXME: This is a workaround for having workflow actions. See https://github.com/orgs/community/discussions/38659 | ||
id-token: write | ||
|
||
jobs: | ||
get-available-images-matrix: | ||
uses: ./.github/workflows/__shared-get-available-images-matrix.yml | ||
|
@@ -48,7 +56,7 @@ jobs: | |
|
||
- id: release | ||
if: steps.should-build-image.outputs.should-build-image == 'true' | ||
uses: release-drafter/release-drafter@v5 | ||
uses: release-drafter/release-drafter@v6.0.0 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
|
@@ -59,36 +67,46 @@ jobs: | |
if: steps.should-build-image.outputs.should-build-image == 'true' && steps.release.outputs.tag_name != '' | ||
run: | | ||
BUILD_TAG=$(echo "${{ steps.release.outputs.tag_name }}" | sed -E "s/^${{ matrix.image }}-//") | ||
BUILD_IMAGES='{"name":"${{ matrix.image }}","context":"images/${{ matrix.image }}", "dockerfile":"Dockerfile", "tag":"'$BUILD_TAG'", "platforms": ["linux/amd64","linux/arm64","linux/arm/v7"]}' | ||
BUILD_IMAGES='{"name":"${{ matrix.image }}","context":"images/${{ matrix.image }}", "dockerfile":"Dockerfile", "tag":"'$BUILD_TAG'", "platforms": ["linux/amd64","linux/arm64"]}' | ||
echo "BUILD_IMAGES=$BUILD_IMAGES" | ||
echo "images<<EOF" >> "$GITHUB_OUTPUT" && echo "$BUILD_IMAGES" >> "$GITHUB_OUTPUT" && echo "EOF" >> "$GITHUB_OUTPUT" | ||
# FIXME: Set built images infos in file to be uploaded as artifacts, because github action does not handle job outputs for matrix | ||
# https://github.com/orgs/community/discussions/26639 | ||
- if: steps.should-build-image.outputs.should-build-image == 'true' | ||
uses: hoverkraft-tech/ci-github-common/actions/set-matrix-output@0.4.3 | ||
uses: hoverkraft-tech/ci-github-common/actions/set-matrix-output@0.16.0 | ||
with: | ||
value: ${{ steps.set-images-to-build.outputs.images }} | ||
artifact-name: images-to-build | ||
|
||
# FIXME: Download matrix ouputs from artifacts, because github action does not handle job outputs for matrix | ||
# https://github.com/orgs/community/discussions/26639 | ||
# jscpd:ignore-start | ||
get-images-to-build: | ||
needs: prepare-images-to-build | ||
runs-on: "ubuntu-latest" | ||
outputs: | ||
images: ${{ steps.get-matrix-outputs.outputs.result }} | ||
steps: | ||
- id: get-matrix-outputs | ||
uses: hoverkraft-tech/ci-github-common/actions/get-matrix-outputs@0.4.3 | ||
uses: hoverkraft-tech/ci-github-common/actions/get-matrix-outputs@0.16.0 | ||
with: | ||
artifact-name: "images-to-build" | ||
|
||
build-images: | ||
needs: get-images-to-build | ||
if: needs.get-images-to-build.outputs.images != '[]' | ||
# FIXME: This is a workaround for having workflow actions. See https://github.com/orgs/community/discussions/38659 | ||
permissions: | ||
id-token: write | ||
contents: read | ||
packages: write | ||
issues: read | ||
pull-requests: read | ||
uses: hoverkraft-tech/ci-github-container/.github/workflows/[email protected] | ||
with: | ||
oci-registry: ${{ vars.OCI_REGISTRY }} | ||
images: ${{ needs.get-images-to-build.outputs.images }} | ||
secrets: | ||
oci-registry-password: ${{ secrets.GITHUB_TOKEN }} | ||
# jscpd:ignore-end |