Skip to content

Commit

Permalink
add octo sts, tweak base path for skip-apps (#541)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinhny authored Sep 17, 2024
1 parent a2d0e98 commit d076022
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/build-and-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,23 @@ jobs:
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || (github.event_name == 'workflow_dispatch')
needs: [build, generate]
runs-on: ubuntu-latest
permissions:
id-token: write
env:
BASE_DIR: ./bases/skiperator
BASE_DIR: ./bases/skiperator-latest
TMP_FILE: tmp_kustomization.yaml
steps:
- uses: octo-sts/action@6177b4481c00308b3839969c3eca88c96a91775f # v1.0.0
id: octo-sts
with:
scope: kartverket/skip-apps
identity: skiperator

- name: Checkout apps repo
uses: actions/checkout@v4
with:
repository: kartverket/skip-apps
token: ${{ secrets.SKIPERATOR_DEPLOY_SECRET }}
token: ${{ steps.octo-sts.outputs.token }}

- name: Download CRD and RBAC
uses: actions/download-artifact@v4
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/release-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,23 @@ jobs:
deploy-argo:
needs: [ goreleaser, generate ]
runs-on: ubuntu-latest
permissions:
id-token: write
env:
BASE_DIR: ./bases/skiperator
BASE_DIR: ./bases/skiperator-stable
TMP_FILE: tmp_kustomization.yaml
steps:
- uses: octo-sts/action@6177b4481c00308b3839969c3eca88c96a91775f # v1.0.0
id: octo-sts
with:
scope: kartverket/skip-apps
identity: skiperator

- name: Checkout apps repo
uses: actions/checkout@v4
with:
repository: kartverket/skip-apps
token: ${{ secrets.SKIPERATOR_DEPLOY_SECRET }}
token: ${{ steps.octo-sts.outputs.token }}

- name: Download CRD and RBAC
uses: actions/download-artifact@v4
Expand Down

0 comments on commit d076022

Please sign in to comment.