Skip to content

Commit

Permalink
remove registry env
Browse files Browse the repository at this point in the history
  • Loading branch information
feliciachang committed May 30, 2024
1 parent bdcb1ef commit 56b7526
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
12 changes: 6 additions & 6 deletions .github/actions/publish-to-jamsocket/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'Deploy to Jamsocket'
description: 'This action will handle the deploying session backend code to your Jamsocket service.'
description: 'This action will handle deploying session backend code to your Jamsocket service.'
inputs:
jamsocket_api_token:
description: 'API Token for Jamsocket authentication'
Expand All @@ -11,10 +11,10 @@ inputs:
description: 'Name of your Jamsocket service'
required: true
docker_build_context:
description: 'Path to the Docker build context'
description: 'Path to your Docker build context'
required: true
dockerfile_path:
description: 'Path to the Dockerfile'
description: 'Path to your Dockerfile'
required: true
runs:
using: 'composite'
Expand All @@ -36,19 +36,19 @@ runs:
JAMCR_PASS="${JAMSOCKET_API_TOKEN#*.}"
echo "JAMCR_PASS=$JAMCR_PASS" >> $GITHUB_ENV
- name: Log into registry ${{ env.REGISTRY }}
- name: Log into Jamsocket's Docker registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
registry: new.jamcr.io
username: ${{ env.JAMCR_USER }}
password: ${{ env.JAMCR_PASS }}

- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ inputs.jamsocket_account }}/${{ inputs.jamsocket_service }}
images: new.jamcr.io/${{ inputs.jamsocket_account }}/${{ inputs.jamsocket_service }}
tags: |
type=raw,value=latest
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/test-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ on:
push:
branches: [ "main" ]

env:
REGISTRY: new.jamcr.io

jobs:
build:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 56b7526

Please sign in to comment.