ghcup-hs/.github/workflows/docker.yaml

128 lines
3.6 KiB
YAML
Raw Normal View History

2022-11-22 11:41:44 +00:00
name: Docker image builds
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
2023-01-14 13:00:32 +00:00
docker-alpine32:
2022-11-22 11:41:44 +00:00
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push (alpine 32bit)
uses: docker/build-push-action@v3
with:
context: ./docker/alpine32
push: true
tags: hasufell/i386-alpine-haskell:3.12
2023-01-26 13:18:11 +00:00
platforms: |
linux/i386
linux/amd64
2023-01-14 13:00:32 +00:00
docker-alpine:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
2022-11-22 11:41:44 +00:00
- name: Build and push (alpine 64bit)
uses: docker/build-push-action@v3
with:
context: ./docker/alpine64
push: true
tags: hasufell/alpine-haskell:3.12
platforms: linux/amd64
2023-01-14 13:00:32 +00:00
docker-arm32:
2023-03-14 12:56:03 +00:00
runs-on: [self-hosted, Linux, ARM64]
2022-11-22 11:41:44 +00:00
steps:
- uses: docker://arm64v8/ubuntu:focal
2023-01-14 13:00:32 +00:00
name: Cleanup (aarch64 linux)
2024-01-30 07:52:32 +00:00
continue-on-error: true
2022-11-22 11:41:44 +00:00
with:
2023-01-14 13:00:32 +00:00
args: "find . -mindepth 1 -maxdepth 1 -exec rm -rf -- {} +"
2022-12-18 13:52:51 +00:00
2022-11-22 11:41:44 +00:00
- name: Checkout
uses: actions/checkout@v3
2023-01-14 13:00:32 +00:00
2022-11-22 11:41:44 +00:00
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
2023-01-14 13:00:32 +00:00
2022-11-22 11:41:44 +00:00
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
2023-01-14 13:00:32 +00:00
2023-02-19 10:11:00 +00:00
- name: Build and push (debian buster)
2022-11-22 11:41:44 +00:00
uses: docker/build-push-action@v3
with:
2023-02-19 10:11:00 +00:00
context: ./docker/arm32v7/buster
2022-11-22 11:41:44 +00:00
push: true
2023-02-19 10:11:00 +00:00
tags: hasufell/arm32v7-debian-haskell:10
2022-11-22 11:41:44 +00:00
platforms: linux/arm
2023-01-14 13:00:32 +00:00
2023-02-19 10:11:00 +00:00
- name: Build and push (ubuntu focal)
uses: docker/build-push-action@v3
with:
2023-02-19 10:11:00 +00:00
context: ./docker/arm32v7/focal
push: true
2023-03-14 12:56:03 +00:00
tags: hasufell/arm32v7-ubuntu-haskell:focal
platforms: linux/arm
2023-01-14 13:00:32 +00:00
docker-aarch:
runs-on: [self-hosted, Linux, ARM64]
steps:
- uses: docker://arm64v8/ubuntu:focal
name: Cleanup (aarch64 linux)
2024-01-30 07:52:32 +00:00
continue-on-error: true
2023-01-14 13:00:32 +00:00
with:
args: "find . -mindepth 1 -maxdepth 1 -exec rm -rf -- {} +"
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
2023-02-19 10:11:00 +00:00
- name: Build and push (debian buster)
2023-01-14 13:00:32 +00:00
uses: docker/build-push-action@v3
with:
2023-02-19 10:11:00 +00:00
context: ./docker/arm64v8/buster
2023-01-14 13:00:32 +00:00
push: true
2023-02-19 10:11:00 +00:00
tags: hasufell/arm64v8-debian-haskell:10
2023-01-14 13:00:32 +00:00
platforms: linux/arm64
2023-02-19 10:11:00 +00:00
- name: Build and push (ubuntu focal)
uses: docker/build-push-action@v3
with:
2023-02-19 10:11:00 +00:00
context: ./docker/arm64v8/focal
push: true
2023-03-14 12:56:03 +00:00
tags: hasufell/arm64v8-ubuntu-haskell:focal
platforms: linux/arm64