ci: extract OCI images before loading and before login

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
Tom Foster 2024-04-21 12:45:47 -04:00 committed by June
parent aaba7342b5
commit 820cf3b9af

View file

@ -296,6 +296,13 @@ jobs:
needs: build-oci needs: build-oci
steps: steps:
- name: Extract and load OCI Images
run: |
unzip oci-image-x86_64-unknown-linux-musl-jemalloc.zip
docker load -i oci-image-x86_64-unknown-linux-musl-jemalloc.tar.gz
unzip oci-image-aarch64-unknown-linux-musl-jemalloc.zip
docker load -i oci-image-aarch64-unknown-linux-musl-jemalloc.tar.gz
- name: Login to Docker Hub - name: Login to Docker Hub
uses: docker/login-action@v3 uses: docker/login-action@v3
env: env:
@ -314,11 +321,6 @@ jobs:
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
- name: Load OCI Images
run: |
docker load -i oci-image-x86_64-unknown-linux-musl-jemalloc.tar.gz
docker load -i oci-image-aarch64-unknown-linux-musl-jemalloc.tar.gz
- name: Create and Push Manifest to Docker Hub - name: Create and Push Manifest to Docker Hub
run: | run: |
DOCKER_IMAGE_NAME="docker.io/${{ github.repository }}" DOCKER_IMAGE_NAME="docker.io/${{ github.repository }}"