Skip to content

Commit

Permalink
Make GITHUB_TOKEN an input for create-image action
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-va committed Apr 17, 2024
1 parent 87d3d58 commit 0d177b0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/actions/create-image/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ inputs:
DOCKERFILE:
description: 'The path to the Dockerfile'
required: true
GITHUB_TOKEN:
description: 'The github token'
required: true

runs:
using: 'composite'
Expand Down Expand Up @@ -41,7 +44,7 @@ runs:
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
password: ${{ inputs.GITHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v5
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ jobs:
IMAGE_NAME: ${{ vars.BASE_IMAGE_NAME }}-app
TAG: edge
DOCKERFILE: ./apps/client-asset-sg/docker/Dockerfile
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build_and_push_api:
name: 'build and push api'
Expand All @@ -130,6 +131,7 @@ jobs:
IMAGE_NAME: ${{ vars.BASE_IMAGE_NAME }}-api
TAG: edge
DOCKERFILE: ./apps/server-asset-sg/docker/Dockerfile
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

tag_edge_commit:
name: 'tag edge commit'
Expand Down

0 comments on commit 0d177b0

Please sign in to comment.