Skip to content

Commit

Permalink
chore(github): cleanup workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
buroa committed Dec 18, 2023
1 parent 94997dc commit cdcef4d
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 10 deletions.
1 change: 0 additions & 1 deletion .github/workflows/flux-diff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ env:
DEBCONF_NONINTERACTIVE_SEEN: "true"
DEBIAN_FRONTEND: noninteractive
APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE: DontWarn
NIX_FLAKE_PATH: ./.github/workflows/resources/nix

jobs:
flux-diff:
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/flux-hr-sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,23 @@ env:
DEBCONF_NONINTERACTIVE_SEEN: "true"
DEBIAN_FRONTEND: noninteractive
APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE: DontWarn
NIX_FLAKE_PATH: ./.github/workflows/resources/nix

jobs:
sync:
name: Flux HelmRepository Sync
runs-on: ["arc-runner-set-k8s-gitops"]
steps:
- name: Generate Token
uses: actions/create-github-app-token@2986852ad836768dfea7781f31828eb3e17990fa # v1.6.2
id: app-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.app-token.outputs.token }}"
fetch-depth: 0

- name: Setup Tools
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/publish-terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,18 @@ jobs:
with:
token: "${{ steps.app-token.outputs.token }}"

- name: Setup Homebrew
uses: Homebrew/actions/setup-homebrew@master

- name: Setup Tools
shell: bash
run: brew install cosign fluxcd/tap/flux

- name: Login to GitHub Container Registry
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
with:
registry: ghcr.io
username: "${{ github.actor }}"
password: "${{ secrets.GITHUB_TOKEN }}"
# https://github.com/orgs/community/discussions/24636
# username: "${{ secrets.BOT_APP_ID }}"
# password: "${{ steps.app-token.outputs.token }}"

- name: Setup Flux
uses: fluxcd/flux2/action@9b3958825a314eb79495c6993ef397ddbf87f32f # v2.2.1

- name: Generate tag
id: generate-tag
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/renovate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ concurrency:
env:
WORKFLOW_DRY_RUN: false
WORKFLOW_LOG_LEVEL: debug
WORKFLOW_VERSION: latest # 37.59.8
WORKFLOW_VERSION: latest
RENOVATE_AUTODISCOVER: true
RENOVATE_AUTODISCOVER_FILTER: "${{ github.repository }}"
RENOVATE_GIT_AUTHOR: "${{ secrets.BOT_USERNAME }} <${{ secrets.BOT_USER_ID }}+${{ secrets.BOT_USERNAME }}[bot]@users.noreply.github.com>"
Expand Down

0 comments on commit cdcef4d

Please sign in to comment.