Skip to content

Commit

Permalink
test push testing failed image to ghcr
Browse files Browse the repository at this point in the history
  • Loading branch information
unkcpz committed Oct 21, 2023
1 parent dafe020 commit b258a2f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/docker-build-test-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,12 @@ 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
with:
name: ${{ inputs.image }}-${{ inputs.architecture }}
path: /tmp/aiidalab/${{ inputs.image }}-${{ inputs.architecture }}.tar
retention-days: 3
if: always()
18 changes: 17 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit b258a2f

Please sign in to comment.