Skip to content

Commit

Permalink
make image name two variables
Browse files Browse the repository at this point in the history
  • Loading branch information
feliciachang committed May 30, 2024
1 parent dee3e2b commit bdcb1ef
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
9 changes: 6 additions & 3 deletions .github/actions/publish-to-jamsocket/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ inputs:
jamsocket_api_token:
description: 'API Token for Jamsocket authentication'
required: true
image_name:
description: 'Name of the Docker image structured like so: JAMSOCKET_ACCOUNT_NAME/JAMSOCKET_SERVICE_NAME'
jamsocket_account:
description: 'Name of your Jamsocket account'
required: true
jamsocket_service:
description: 'Name of your Jamsocket service'
required: true
docker_build_context:
description: 'Path to the Docker build context'
Expand Down Expand Up @@ -45,7 +48,7 @@ runs:
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ inputs.image_name }}
images: ${{ env.REGISTRY }}/${{ inputs.jamsocket_account }}/${{ inputs.jamsocket_service }}
tags: |
type=raw,value=latest
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/test-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ jobs:
- name: Use the local Publish to Jamsocket Action
uses: ./.github/actions/publish-to-jamsocket
with:
JAMSOCKET_API_TOKEN: ${{ secrets.JAMSOCKET_API_TOKEN }}
IMAGE_NAME: ffeliciachang/renaissance-earth
DOCKER_BUILD_CONTEXT: ./server
DOCKERFILE_PATH: ./server/Dockerfile.jamsocket
jamsocket_api_token: ${{ secrets.JAMSOCKET_API_TOKEN }}
jamsocket_account: ffeliciachang
jamsocket_service: renaissance-earth
docker_build_context: ./server
dockerfile_path: ./server/Dockerfile.jamsocket

0 comments on commit bdcb1ef

Please sign in to comment.