Skip to content

Commit

Permalink
Rollback and remove ghcr.io build in forks
Browse files Browse the repository at this point in the history
This seems like a good feature but I don't have time to implement it
correctly.
  • Loading branch information
fauust committed Aug 24, 2023
1 parent fc20968 commit 0a654d2
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/bb_containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,7 @@ jobs:
docker run -u root -i "$image" bash -c "touch /tmp/foo && qpress -r /tmp /root/qpress.qp"
done
- name: Check for registry credentials
if: >
github.ref == 'refs/heads/main' &&
github.repository == 'MariaDB/buildbot'
if: ${{ env.DEPLOY_IMAGES == 'true' }}
run: |
missing=()
[[ -n "${{ secrets.QUAY_USER }}" ]] || missing+=(QUAY_USER)
Expand All @@ -258,20 +256,13 @@ jobs:
echo "Not pushing images to registry"
fi
- name: Login to ghcr.io
if: ${{ env.DEPLOY_IMAGES == 'true' }}
uses: docker/login-action@v2
# this should make it possible to build images in main forks.
if: >
(!contains(matrix.dockerfile, 'rhel')) &&
github.head_ref == 'main'
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push images to ghcr.io
# this should make it possible to build images in main forks.
if: >
(!contains(matrix.dockerfile, 'rhel')) &&
github.head_ref == 'main'
run: |
msg="Push docker image to ghcr.io (${{ env.IMG }})"
line="${msg//?/=}"
Expand Down

0 comments on commit 0a654d2

Please sign in to comment.