Skip to content

Commit

Permalink
Adding in OIDC instead of API Key
Browse files Browse the repository at this point in the history
  • Loading branch information
BobJWalker authored Nov 28, 2023
1 parent c1aca28 commit ea98600
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ env:
OCTOPUS_FEATURE_BRANCH_CHANNEL: Default
OCTOPUS_RELEASE_CHANNEL: Release
OCTOPUS_SPACE: Default
OCTOPUS_API_KEY: ${{ secrets.OCTOPUSSERVERAPIKEY }}
OCTOPUS_SERVICE_ACCOUNT_ID: 31344c87-8630-460b-9b4a-86be9abbd557
OCTOPUS_URL: ${{ secrets.OCTOPUSSERVERURL }}

jobs:

build-and-push-application:
permissions:
id-token: write
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -130,7 +132,13 @@ jobs:
docker push bobjwalker99/trident:${{ steps.ReleaseNum.outputs.APP_VERSION }}
docker push bobjwalker99/trident:${{ steps.ReleaseNum.outputs.APP_VERSION_PREFIX }}
docker push bobjwalker99/trident:latest
- name: Login to Octopus Deploy
uses: OctopusDeploy/login@v1
with:
server: ${{ env.OCTOPUS_URL }}
service_account_id: ${{ env.OCTOPUS_SERVICE_ACCOUNT_ID }}

- name: push packages to Octopus
uses: OctopusDeploy/push-package-action@v3
with:
Expand Down

0 comments on commit ea98600

Please sign in to comment.