make image_name variable work, OCI uses/expects conduit

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-01-31 18:24:25 -05:00 committed by June
parent 2dd8d372de
commit c239ff5e42
1 changed files with 6 additions and 8 deletions

View File

@ -166,15 +166,14 @@ jobs:
- name: Publish to Dockerhub
env:
REGISTRY: registry.hub.docker.com
IMAGE_NAME: ${{ env.REGISTRY }}/${{ github.repository }}
IMAGE_NAME: registry.hub.docker.com/${{ github.repository }}
IMAGE_SUFFIX_AMD64: amd64
IMAGE_SUFFIX_ARM64V8: arm64v8
run: |
docker load -i oci-image-amd64.tar.gz
IMAGE_ID_AMD64=$(docker images -q conduwuit:main)
IMAGE_ID_AMD64=$(docker images -q conduit:main)
docker load -i oci-image-arm64v8.tar.gz
IMAGE_ID_ARM64V8=$(docker images -q conduwuit:main)
IMAGE_ID_ARM64V8=$(docker images -q conduit:main)
# Tag and push the architecture specific images
docker tag $IMAGE_ID_AMD64 $IMAGE_NAME:$GITHUB_SHA-$IMAGE_SUFFIX_AMD64
@ -195,15 +194,14 @@ jobs:
- name: Publish to GitHub Container Registry
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ env.REGISTRY }}/${{ github.repository }}
IMAGE_NAME: ghcr.io/${{ github.repository }}
IMAGE_SUFFIX_AMD64: amd64
IMAGE_SUFFIX_ARM64V8: arm64v8
run: |
docker load -i oci-image-amd64.tar.gz
IMAGE_ID_AMD64=$(docker images -q conduwuit:main)
IMAGE_ID_AMD64=$(docker images -q conduit:main)
docker load -i oci-image-arm64v8.tar.gz
IMAGE_ID_ARM64V8=$(docker images -q conduwuit:main)
IMAGE_ID_ARM64V8=$(docker images -q conduit:main)
# Tag and push the architecture specific images
docker tag $IMAGE_ID_AMD64 $IMAGE_NAME:$GITHUB_SHA-$IMAGE_SUFFIX_AMD64