Attempt to manually build containers/auth.json file

HubbeKing-multiplatform-builds
Hubbe 2 weeks ago committed by GitHub
parent b19fad22ce
commit acf4169c79
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -43,13 +43,12 @@ jobs:
- thrimshim - thrimshim
- zulip_bots - zulip_bots
steps: steps:
- name: Install git & podman - name: Install git
# the buildah/stable image doesn't include git # the buildah/stable image doesn't include git
# actions/checkout works without git, but not if you do submodules # actions/checkout works without git, but not if you do submodules
# thus, we install git # thus, we install git
# we need podman for the podman-login action unfortunately
run: | run: |
sudo dnf install -y git podman sudo dnf install -y git
- name: Check out repo - name: Check out repo
uses: actions/checkout@v3 uses: actions/checkout@v3
@ -68,12 +67,16 @@ jobs:
run: | run: |
sudo dnf install -y qemu-user-static sudo dnf install -y qemu-user-static
- name: Log into ghcr.io - name: Create containers/auth.json file
uses: redhat-actions/podman-login@v1 env:
with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
run: |
mkdir -p ~/.config/containers
echo "$username:$password" | base64 > tmp
echo "{"auths":{"ghcr.io":{"auth": $(cat tmp)}}}" > ~/.config/containers/auth.json
rm tmp
- name: Build ${{ matrix.component }} - name: Build ${{ matrix.component }}
# always push # always push

Loading…
Cancel
Save