Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
feliciachang committed May 30, 2024
1 parent f318672 commit 448c6e4
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/actions/publish-to-jamsocket/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,35 @@ runs:
run: |
JAMSOCKET_API_TOKEN=${{ inputs.JAMSOCKET_API_TOKEN }}
echo "JAMCR_USER=${JAMSOCKET_API_TOKEN%\.*}" >> $GITHUB_ENV
- name: Set JAMCR_PASS from token
shell: bash
run: |
JAMSOCKET_API_TOKEN=${{ inputs.JAMSOCKET_API_TOKEN }}
echo "JAMCR_PASS=${JAMSOCKET_API_TOKEN#*\.}" >> $GITHUB_ENV
- name: Log into registry ${{ env.REGISTRY }}
if: github.event_name != 'pull_request'
uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
with:
registry: ${{ env.REGISTRY }}
username: ${{ env.JAMCR_USER }}
password: ${{ env.JAMCR_PASS }}

- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v3
with:
images: ${{ env.REGISTRY }}/${{ inputs.IMAGE_NAME }}
tags: |
type=sha,enable=true,priority=100,prefix=sha-,suffix=,format=short
type=raw,value=latest
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: ${{ inputs.DOCKER_BUILD_CONTEXT }}
file: ${{ inputs.DOCKERFILE_PATH }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 448c6e4

Please sign in to comment.