Skip to content

Commit

Permalink
Oppdatert path i skvis apps og byttet til å bruke OctoSTS (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
larsore committed Jul 19, 2024
1 parent c23c166 commit fd81135
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/build-and-deploy-to-skip.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ permissions:

env:
REGISTRY: ghcr.io
ARGO_VERSION_FILE: api-version
ARGO_VERSION_FILE: image-url-backend
IMAGE_NAME: ${{ github.repository }}

jobs:
Expand Down Expand Up @@ -99,17 +99,23 @@ jobs:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: build
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: octo-sts/action@6177b4481c00308b3839969c3eca88c96a91775f # v1.0.0
id: octo-sts
with:
scope: kartverket/skvis-apps
identity: ${{ github.repository }}
- name: Checkout skvis-apps
uses: actions/checkout@v4
with:
repository: kartverket/skvis-apps
ref: main
token: ${{ secrets.ARGO_PAT }}
token: ${{ steps.octo-sts.outputs.token }}
- name: Update version
run: |
echo "\"${{ needs.build.outputs.image_url }}\"" > "env/atgcp1-dev/ros-plugin-backend-main/${{ env.ARGO_VERSION_FILE }}"
echo "\"${{ needs.build.outputs.image_url }}\"" > "env/atgcp1-prod/ros-plugin/image-url"
echo "\"${{ needs.build.outputs.image_url }}\"" > "env/atgcp1-prod/ros-plugin-main/${{ env.ARGO_VERSION_FILE }}"
git config --global user.email "noreply@kartverket.no"
git config --global user.name "Backstage Plugin Risk Scorecard Backend CI"
git commit -am "Update ros-backend ${{ env.ARGO_VERSION_FILE }}"
Expand Down

0 comments on commit fd81135

Please sign in to comment.