Skip to content

Commit

Permalink
Devops: Upload artifact by PR from forks for docker workflow (#6119)
Browse files Browse the repository at this point in the history
Cherry-pick: aeaa90f
  • Loading branch information
unkcpz authored and sphuber committed Nov 15, 2023
1 parent fec4e3b commit afc2dad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/docker-build-test-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,10 @@ jobs:
name: aiida-core-base-${{ inputs.architecture }}
path: /tmp/aiida-core-base-${{ inputs.architecture }}.tar
retention-days: 3
if: ${{ !github.event.pull_request.head.repo.fork }}

- name: Upload aiida-core-with-services image as artifact 💾
uses: actions/upload-artifact@v3
with:
name: aiida-core-with-services-${{ inputs.architecture }}
path: /tmp/aiida-core-with-services-${{ inputs.architecture }}.tar
retention-days: 3
if: ${{ !github.event.pull_request.head.repo.fork }}
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ jobs:
if: ${{ !github.event.pull_request.head.repo.fork }}

amd64-push-ghcr:
if: github.repository == 'aiidateam/aiida-core'
uses: ./.github/workflows/docker-push.yml
with:
architecture: amd64
Expand All @@ -46,6 +45,7 @@ jobs:
REGISTRY_USERNAME: ${{ github.actor }}
REGISTRY_TOKEN: ${{ secrets.GITHUB_TOKEN }}
needs: [amd64-build]
if: ${{ !github.event.pull_request.head.repo.fork }}

arm64-push-ghcr:
uses: ./.github/workflows/docker-push.yml
Expand Down

0 comments on commit afc2dad

Please sign in to comment.