Install podman and use podman-login action

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

@ -43,12 +43,13 @@ jobs:
- thrimshim - thrimshim
- zulip_bots - zulip_bots
steps: steps:
- name: Install git - name: Install git & podman
# 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 sudo dnf install -y git podman
- name: Check out repo - name: Check out repo
uses: actions/checkout@v3 uses: actions/checkout@v3
@ -68,12 +69,11 @@ jobs:
sudo dnf install -y qemu-user-static sudo dnf install -y qemu-user-static
- name: Log into ghcr.io - name: Log into ghcr.io
env: uses: redhat-actions/podman-login@v1
with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
run: |
buildah login "$registry" --username "$username" --password "$password"
- name: Build ${{ matrix.component }} - name: Build ${{ matrix.component }}
# always push # always push

Loading…
Cancel
Save