From b258a2fca6eb3b0270d9ec0cb3a0fe6a42e0ad01 Mon Sep 17 00:00:00 2001 From: Jusong Yu Date: Sat, 21 Oct 2023 18:26:15 +0200 Subject: [PATCH] test push testing failed image to ghcr --- .github/workflows/docker-build-test-upload.yml | 2 ++ .github/workflows/docker.yml | 18 +++++++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-build-test-upload.yml b/.github/workflows/docker-build-test-upload.yml index 15ed6d04..68de9054 100644 --- a/.github/workflows/docker-build-test-upload.yml +++ b/.github/workflows/docker-build-test-upload.yml @@ -60,6 +60,7 @@ jobs: mkdir -p /tmp/aiidalab/ docker save ${{ env.OWNER }}/${{ inputs.image }} -o /tmp/aiidalab/${{ inputs.image }}-${{ inputs.architecture }}.tar shell: bash + if: always() - name: Upload image as artifact 💾 uses: actions/upload-artifact@v3 @@ -67,3 +68,4 @@ jobs: name: ${{ inputs.image }}-${{ inputs.architecture }} path: /tmp/aiidalab/${{ inputs.image }}-${{ inputs.architecture }}.tar retention-days: 3 + if: always() diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 1e710f5d..acf3f31b 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -88,7 +88,8 @@ jobs: image: full-stack architecture: amd64 runsOn: ubuntu-latest - needs: [amd64-base-with-services, amd64-lab] + # XXX: for test, will not need to wait. + # needs: [amd64-base-with-services, amd64-lab] arm64-base: uses: ./.github/workflows/docker-build-test-upload.yml @@ -121,6 +122,21 @@ jobs: runsOn: ARM64 needs: [arm64-base-with-services, arm64-lab] + # for test + amd64-fs-push-ghcr: + uses: ./.github/workflows/docker-push.yml + strategy: + matrix: + image: ["full-stack"] + with: + architecture: amd64 + image: ${{ matrix.image }} + registry: ghcr.io + secrets: + REGISTRY_USERNAME: ${{ github.actor }} + REGISTRY_TOKEN: ${{ secrets.GITHUB_TOKEN }} + needs: [amd64-full-stack] + amd64-push-ghcr: uses: ./.github/workflows/docker-push.yml strategy: