mirror of
https://github.com/Sudo-JHare/FHIRFLARE-IG-Toolkit.git
synced 2025-11-05 09:25:14 +00:00
fix: two tag extensions
Run docker build -t ghcr.io/ghcr.io/jgsuess/fhirflare-ig-toolkit:main:latest . ERROR: failed to build: invalid tag "ghcr.io/ghcr.io/jgsuess/fhirflare-ig-toolkit:main:latest": invalid reference format
This commit is contained in:
parent
6ede139084
commit
e2a6b19a2e
10
.github/workflows/docker-publish.yml
vendored
10
.github/workflows/docker-publish.yml
vendored
@ -38,12 +38,16 @@ jobs:
|
||||
|
||||
- name: Set normalized image name
|
||||
run: |
|
||||
echo "IMAGE_NAME=${{ steps.meta.outputs.tags }}" >> $GITHUB_ENV
|
||||
if [[ "${{ github.ref_name }}" == "main" ]]; then
|
||||
echo "IMAGE_NAME=$(echo ${{ steps.meta.outputs.tags }} | sed 's/:main/:latest/')" >> $GITHUB_ENV
|
||||
else
|
||||
echo "IMAGE_NAME=${{ steps.meta.outputs.tags }}" >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: Build Docker image
|
||||
run: |
|
||||
docker build -t ghcr.io/${{ env.IMAGE_NAME }}:latest .
|
||||
docker build -t ${{ env.IMAGE_NAME }} .
|
||||
|
||||
- name: Push Docker image
|
||||
run: |
|
||||
docker push ghcr.io/${{ env.IMAGE_NAME }}:latest
|
||||
docker push ${{ env.IMAGE_NAME }}
|
||||
Loading…
x
Reference in New Issue
Block a user