Go back to the intended use so we can debug with act

HubbeKing-multiplatform-builds
HubbeKing 2 weeks ago
parent acf4169c79
commit 9b079d1bac

@ -20,9 +20,6 @@ permissions:
jobs: jobs:
build: build:
runs-on: ubuntu-24.04 runs-on: ubuntu-24.04
# run jobs in buildah containers, since ubuntu is bad at keeping packages updated
container:
image: quay.io/buildah/stable:latest
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@ -43,15 +40,8 @@ jobs:
- thrimshim - thrimshim
- zulip_bots - zulip_bots
steps: steps:
- name: Install git
# the buildah/stable image doesn't include git
# actions/checkout works without git, but not if you do submodules
# thus, we install git
run: |
sudo dnf install -y git
- name: Check out repo - name: Check out repo
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
submodules: recursive submodules: recursive
# By default, for PR builds, Actions will check out a merge commit between the actual # By default, for PR builds, Actions will check out a merge commit between the actual
@ -63,20 +53,16 @@ jobs:
- name: Install QEMU - name: Install QEMU
# qemu-user-static is used by buildah to do multiplatform builds # qemu-user-static is used by buildah to do multiplatform builds
# the buildah image is fedora-based, hence we use dnf
run: | run: |
sudo dnf install -y qemu-user-static sudo apt update
sudo apt install -y qemu-user-static
- name: Create containers/auth.json file - name: Log in to ghcr.io
env: uses: docker/login-action@v3
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

@ -104,7 +104,6 @@ for component in "${COMPONENTS[@]}"; do
-f "$component/Dockerfile" \ -f "$component/Dockerfile" \
-t "$latest" \ -t "$latest" \
-t "$specific" \ -t "$specific" \
--manifest "wubloader-$component" \
"${CACHE_ARGS[@]}" \ "${CACHE_ARGS[@]}" \
. .
fi fi

Loading…
Cancel
Save