Skip to content

Commit

Permalink
token
Browse files Browse the repository at this point in the history
  • Loading branch information
jnewb1 committed Jun 29, 2024
1 parent e66c8a5 commit 5cf9df0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
uses: ./.github/workflows/build
with:
tag: frontend
token: ${{ secrets.GITHUB_TOKEN }}

build-backend:
runs-on: ubuntu-latest
Expand All @@ -25,3 +26,4 @@ jobs:
uses: ./.github/workflows/build
with:
tag: backend
token: ${{ secrets.GITHUB_TOKEN }}
3 changes: 2 additions & 1 deletion .github/workflows/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: 'deploy'

input:
tag:
token:

permissions:
packages: write
Expand All @@ -14,7 +15,7 @@ runs:
with:
driver: docker
- name: login to ghcr.io
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
run: echo "${{ inputs.token }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: build and push
uses: docker/build-push-action@v6
with:
Expand Down

0 comments on commit 5cf9df0

Please sign in to comment.