-
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.
chore(workflow): update github actions scripts
- Loading branch information
Showing
28 changed files
with
494 additions
and
106 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,10 @@ | ||
--- | ||
# yaml-language-server: disabled | ||
area/github: | ||
- ".github/**/*" | ||
area/kubernetes: | ||
- "kubernetes/**/*" | ||
area/hack: | ||
- "hack/**/*" | ||
area/tofu: | ||
- "tofu/**/*" |
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,39 @@ | ||
--- | ||
# yaml-language-server: disabled | ||
# Area | ||
- name: area/github | ||
color: "72ccf3" | ||
description: >- | ||
Changes made in the github directory | ||
- name: area/kubernetes | ||
color: "72ccf3" | ||
description: >- | ||
Changes made in the kubernetes directory | ||
- name: area/hack | ||
color: "72ccf3" | ||
description: >- | ||
Changes made in the hack directory | ||
- name: area/tofu | ||
color: "72ccf3" | ||
description: >- | ||
Changes made in the tofu directory | ||
# Renovate | ||
- name: renovate/container | ||
color: "009485" | ||
- name: renovate/github-action | ||
color: "009485" | ||
- name: renovate/github-release | ||
color: "009485" | ||
- name: renovate/helm | ||
color: "009485" | ||
- name: renovate/tofu | ||
color: "009485" | ||
# Semantic Type | ||
- name: type/digest | ||
color: "ffec19" | ||
- name: type/patch | ||
color: "ffec19" | ||
- name: type/minor | ||
color: "ff9800" | ||
- name: type/major | ||
color: "f6412d" |
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,5 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"username": "RoboDexo2000[bot]", | ||
"gitAuthor": "RoboDexo2000 <150604236+RoboDexo2000[bot]@users.noreply.github.com>" | ||
} |
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,25 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": [ | ||
"config:recommended", | ||
"docker:enableMajor", | ||
":disableRateLimiting", | ||
":dependencyDashboard", | ||
":semanticCommits", | ||
":automergeDigest", | ||
":automergeBranch", | ||
":automergePatch", | ||
"github>dexters-ops/containers//.github/renovate/autoMerge.json5", | ||
"github>dexters-ops/containers//.github/renovate/commitMessage.json5", | ||
"github>dexters-ops/containers//.github/renovate/customManagers.json5", | ||
"github>dexters-ops/containers//.github/renovate/labels.json5", | ||
"github>dexters-ops/containers//.github/renovate/semanticCommits.json5" | ||
], | ||
"platform": "github", | ||
"onboarding": false, | ||
"requireConfig": "optional", | ||
"ignoreDeps": [ | ||
"public.ecr.aws/docker/library/ubuntu", | ||
"node" | ||
] | ||
} |
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,14 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"packageRules": [ | ||
{ | ||
"description": "Auto merge GitHub Actions", | ||
"matchManagers": ["github-actions"], | ||
"matchDatasources": ["github-tags"], | ||
"automerge": true, | ||
"ignoreTests": true, | ||
"automergeType": "branch", | ||
"matchUpdateTypes": ["minor", "patch"] | ||
} | ||
] | ||
} |
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,12 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"commitMessageTopic": "{{depName}}", | ||
"commitMessageExtra": "to {{newVersion}}", | ||
"commitMessageSuffix": "", | ||
"packageRules": [ | ||
{ | ||
"matchDatasources": ["docker"], | ||
"commitMessageTopic": "image {{depName}}" | ||
} | ||
] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"packageRules": [ | ||
{ | ||
"matchUpdateTypes": ["major"], | ||
"labels": ["type/major"] | ||
}, | ||
{ | ||
"matchUpdateTypes": ["minor"], | ||
"labels": ["type/minor"] | ||
}, | ||
{ | ||
"matchUpdateTypes": ["patch"], | ||
"labels": ["type/patch"] | ||
}, | ||
{ | ||
"matchUpdateTypes": ["digest"], | ||
"labels": ["type/digest"] | ||
}, | ||
{ | ||
"matchDatasources": ["docker"], | ||
"addLabels": ["renovate/container"] | ||
}, | ||
{ | ||
"matchDatasources": ["github-releases", "github-tags"], | ||
"addLabels": ["renovate/github-release"] | ||
}, | ||
{ | ||
"matchManagers": ["github-actions"], | ||
"addLabels": ["renovate/github-action"] | ||
} | ||
] | ||
} |
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,62 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"packageRules": [ | ||
{ | ||
"matchDatasources": ["docker"], | ||
"matchUpdateTypes": ["major"], | ||
"commitMessagePrefix": "feat(container)!: " | ||
}, | ||
{ | ||
"matchDatasources": ["docker"], | ||
"matchUpdateTypes": ["minor"], | ||
"semanticCommitType": "feat", | ||
"semanticCommitScope": "container" | ||
}, | ||
{ | ||
"matchDatasources": ["docker"], | ||
"matchUpdateTypes": ["patch"], | ||
"semanticCommitType": "fix", | ||
"semanticCommitScope": "container" | ||
}, | ||
{ | ||
"matchDatasources": ["docker"], | ||
"matchUpdateTypes": ["digest"], | ||
"semanticCommitType": "chore", | ||
"semanticCommitScope": "container" | ||
}, | ||
{ | ||
"matchDatasources": ["github-releases", "github-tags"], | ||
"matchUpdateTypes": ["major"], | ||
"commitMessagePrefix": "feat(github-release)!: " | ||
}, | ||
{ | ||
"matchDatasources": ["github-releases", "github-tags"], | ||
"matchUpdateTypes": ["minor"], | ||
"semanticCommitType": "feat", | ||
"semanticCommitScope": "github-release" | ||
}, | ||
{ | ||
"matchDatasources": ["github-releases", "github-tags"], | ||
"matchUpdateTypes": ["patch"], | ||
"semanticCommitType": "fix", | ||
"semanticCommitScope": "github-release" | ||
}, | ||
{ | ||
"matchManagers": ["github-actions"], | ||
"matchUpdateTypes": ["major"], | ||
"commitMessagePrefix": "feat(github-action)!: " | ||
}, | ||
{ | ||
"matchManagers": ["github-actions"], | ||
"matchUpdateTypes": ["minor"], | ||
"semanticCommitType": "feat", | ||
"semanticCommitScope": "github-action" | ||
}, | ||
{ | ||
"matchManagers": ["github-actions"], | ||
"matchUpdateTypes": ["patch"], | ||
"semanticCommitType": "fix", | ||
"semanticCommitScope": "github-action" | ||
} | ||
] | ||
} |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# yamllint disable rule:comments | ||
--- | ||
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | ||
name: Create and publish a Docker images | ||
|
@@ -8,7 +9,8 @@ env: | |
|
||
jobs: | ||
prepare-matrix: | ||
uses: ajgon/containers/.github/workflows/prepare-matrix.yaml@master | ||
uses: dexters-ops/containers/.github/workflows/prepare-matrix.yaml@master | ||
secrets: inherit | ||
|
||
deploy: | ||
needs: prepare-matrix | ||
|
@@ -21,8 +23,17 @@ jobs: | |
fail-fast: false | ||
# yamllint disable rule:line-length | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Generate Token | ||
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0 | ||
id: generate-token | ||
with: | ||
app_id: "${{ secrets.BOT_APP_ID }}" | ||
private_key: "${{ secrets.BOT_APP_PRIVATE_KEY }}" | ||
|
||
- name: Checkout | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
with: | ||
token: "${{ steps.generate-token.outputs.token }}" | ||
fetch-depth: 1 | ||
|
||
- name: Setup workflow Variables | ||
|
@@ -64,28 +75,28 @@ jobs: | |
echo "tags=${tags}" >> $GITHUB_OUTPUT | ||
- name: Setup QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0.0 | ||
with: | ||
image: "public.ecr.aws/eks-distro-build-tooling/binfmt-misc:qemu-v7.0.0" | ||
|
||
- name: Setup Docker Buildx | ||
id: buildx | ||
uses: docker/setup-buildx-action@v3 | ||
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0 | ||
with: | ||
version: latest | ||
driver-opts: | | ||
image=public.ecr.aws/vend/moby/buildkit:buildx-stable-1 | ||
- name: Setup GHCR | ||
uses: docker/login-action@v3 | ||
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0 | ||
with: | ||
registry: ${{ env.IMAGE_REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build all platforms | ||
id: release | ||
uses: docker/build-push-action@v5 | ||
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 # v5.1.0 | ||
with: | ||
build-args: |- | ||
BASEIMGVERSION=${{ steps.vars.outputs.baseimg_build_version }} | ||
|
@@ -96,9 +107,9 @@ jobs: | |
${{ steps.vars.outputs.label_type }}.title="${{ matrix.apps.app }} (${{ matrix.apps.channel }})" | ||
${{ steps.vars.outputs.label_type }}.version="${{ steps.vars.outputs.build_version }}" | ||
${{ steps.vars.outputs.label_type }}.authors="Igor Rzegocki <[email protected]>" | ||
${{ steps.vars.outputs.label_type }}.url="https://github.com/ajgon/containers/tree/master/apps/${{ matrix.apps.app }}" | ||
${{ steps.vars.outputs.label_type }}.build.url="https://github.com/ajgon/containers/actions/runs/${{ github.run_id }}" | ||
${{ steps.vars.outputs.label_type }}.documentation="https://github.com/ajgon/containers/tree/master/apps/${{ matrix.apps.app }}/README.md" | ||
${{ steps.vars.outputs.label_type }}.url="https://github.com/dexters-ops/containers/tree/master/apps/${{ matrix.apps.app }}" | ||
${{ steps.vars.outputs.label_type }}.build.url="https://github.com/dexters-ops/containers/actions/runs/${{ github.run_id }}" | ||
${{ steps.vars.outputs.label_type }}.documentation="https://github.com/dexters-ops/containers/tree/master/apps/${{ matrix.apps.app }}/README.md" | ||
${{ steps.vars.outputs.label_type }}.revision="${{ github.sha }}" | ||
context: apps/${{ matrix.apps.app }} | ||
platforms: ${{ steps.vars.outputs.platforms }} | ||
|
@@ -123,3 +134,4 @@ jobs: | |
- name: Check build matrix status | ||
if: ${{ needs.deploy.result != 'success' && needs.deploy.result != 'skipped' }} | ||
run: exit 1 | ||
# yamllint enable rule:comments |
Oops, something went wrong.