Skip to content

Commit

Permalink
Credentials for RHEL are only presents upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
fauust committed Oct 4, 2023
1 parent 90af2c3 commit 91fb4c7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/bb_containers_rhel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ jobs:
fi
echo "REPO=bb-worker" >>$GITHUB_ENV
- name: Check for rhel subscription credentials
if: >
github.repository == 'mariadb/buildbot' &&
github.ref == 'refs/heads/main'
run: |
missing=()
[[ -n "${{ secrets.RHEL_ORGID }}" ]] || missing+=(RHEL_ORGID)
Expand All @@ -75,10 +78,12 @@ jobs:
run: |
docker run -i -v $(pwd):/mnt -w /mnt ghcr.io/hadolint/hadolint:latest hadolint /mnt/Dockerfile
- name: Install qemu-user-static
if: ${{ env.BUILD_RHEL == 'true' }}
run: |
sudo apt-get update
sudo apt-get install -y qemu-user-static
- name: Make sure that time is in sync
if: ${{ env.BUILD_RHEL == 'true' }}
run: |
# RHEL subscription needs that time and date
# is correct and is syncing with an NTP-server
Expand Down Expand Up @@ -113,6 +118,7 @@ jobs:
--all ${{ env.REPO }}:${{ env.IMG }} \
docker://localhost:5000/${{ env.REPO }}:${{ env.IMG }}
- name: Check multi-arch container
if: ${{ env.BUILD_RHEL == 'true' }}
run: |
# make some space on the runner
if [[ -d $HOME/.local/share/containers ]]; then
Expand All @@ -130,6 +136,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: ${{ env.BUILD_RHEL == 'true' }}
run: |
missing=()
[[ -n "${{ secrets.QUAY_USER }}" ]] || missing+=(QUAY_USER)
Expand Down

0 comments on commit 91fb4c7

Please sign in to comment.