Update .forgejo/workflows/docker.yml

This commit is contained in:
Nova Cat 2025-04-12 19:50:41 -07:00
parent 0b8a8a7904
commit c1372bc2f9

View file

@ -39,10 +39,32 @@ jobs:
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker buildx create --name multiarch --driver docker-container --use
- name: Build docker image
run: docker buildx build --platform linux/amd64,linux/386 -t git.swee.codes/swee/alpineaio:edge .
run: docker buildx build --platform linux/amd64 --tag git.swee.codes/swee/alpineaio:edge .
working-directory: ./docker/alpine
- name: Push docker image
run: docker push git.swee.codes/swee/alpineaio --all-tags
run: docker push git.swee.codes/swee/alpineaio:edge
working-directory: ./docker/alpine
alpine-aio-386:
runs-on: alpine-native
steps:
- name: Setup Alpine
uses: https://git.swee.codes/swee/setup-alpine@main
with:
additional: docker docker-cli-buildx
- uses: actions/checkout@v3
- name: Start daemon
run: dockerd &
- name: Login to Docker
run: echo ${{ secrets.TOKEN }} | docker login git.swee.codes --username swee --password-stdin
- name: Create driver
run: |
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker buildx create --name multiarch --driver docker-container --use
- name: Build docker image
run: docker buildx build --platform linux/386 --tag git.swee.codes/swee/alpineaio:edge-386 .
working-directory: ./docker/alpine
- name: Push docker image
run: docker push git.swee.codes/swee/alpineaio:edge-386
working-directory: ./docker/alpine
alpine-aio-arm:
runs-on: alpine-native-arm64
@ -61,8 +83,30 @@ jobs:
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker buildx create --name multiarch --driver docker-container --use
- name: Build docker image
run: docker buildx build --platform linux/arm64,linux/arm/v7 -t git.swee.codes/swee/alpineaio:edge .
run: docker buildx build --platform linux/arm/v7 --tag git.swee.codes/swee/alpineaio:edge-arm .
working-directory: ./docker/alpine
- name: Push docker image
run: docker push git.swee.codes/swee/alpineaio --all-tags
run: docker push git.swee.codes/swee/alpineaio:edge-arm
working-directory: ./docker/alpine
alpine-aio-arm64:
runs-on: alpine-native-arm64
steps:
- name: Setup Alpine
uses: https://git.swee.codes/swee/setup-alpine@main
with:
additional: docker docker-cli-buildx
- uses: actions/checkout@v3
- name: Start daemon
run: dockerd &
- name: Login to Docker
run: echo ${{ secrets.TOKEN }} | docker login git.swee.codes --username swee --password-stdin
- name: Create driver
run: |
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker buildx create --name multiarch --driver docker-container --use
- name: Build docker image
run: docker buildx build --platform linux/arm64 --tag git.swee.codes/swee/alpineaio:edge-arm64 .
working-directory: ./docker/alpine
- name: Push docker image
run: docker push git.swee.codes/swee/alpineaio:edge-arm64
working-directory: ./docker/alpine