Skip to content

Commit

Permalink
use new token
Browse files Browse the repository at this point in the history
  • Loading branch information
myleshorton committed Oct 31, 2023
1 parent 47dab67 commit 5106c05
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: Go

on:
workflow_call:

push:
branches-ignore: main

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -17,7 +17,7 @@ jobs:
go-version: 1.19
- name: Granting private modules access
run: |
git config --global url."https://${{ secrets.GH_TOKEN }}:[email protected]/".insteadOf "https://github.com/"
git config --global url."https://${{ secrets.CI_PRIVATE_REPOS_GH_TOKEN }}:[email protected]/".insteadOf "https://github.com/"
- uses: actions/cache@v3
with:
path: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
go:
uses: ./.github/workflows/go.yml
secrets: inherit

docker_push:
name: docker push
needs: [go]
Expand Down Expand Up @@ -39,7 +39,7 @@ jobs:
uses: docker/build-push-action@v3
with:
secrets: |
"github_oauth_token=${{ secrets.GH_TOKEN }}"
"github_oauth_token=${{ secrets.CI_PRIVATE_REPOS_GH_TOKEN }}"
context: .
push: true
file: Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/push_branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
uses: docker/build-push-action@v3
with:
secrets: |
"github_oauth_token=${{ secrets.GH_TOKEN }}"
"github_oauth_token=${{ secrets.CI_PRIVATE_REPOS_GH_TOKEN }}"
context: .
push: true
file: Dockerfile
Expand Down

0 comments on commit 5106c05

Please sign in to comment.