Automated weekly build of Docker images for Linux runners (#7375)

* Initial container builder for Debian 12 image

* Use containing dir as context
This commit is contained in:
Nick Bolton 2024-07-08 21:29:54 +01:00 committed by GitHub
parent 6e82f64ec8
commit 0e07af6cf3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 36 additions and 0 deletions

3
.github/docker/debian-12/Dockerfile vendored Normal file
View file

@ -0,0 +1,3 @@
FROM debian:12
RUN apt update && apt install -y git python3 && apt clean

33
.github/workflows/build-containers.yml vendored Normal file
View file

@ -0,0 +1,33 @@
name: Build containers
on:
workflow_dispatch:
schedule:
- cron: "0 5 * * 0"
jobs:
build-containers:
runs-on: ubuntu-latest
if: ${{ vars.BUILD_CONTAINERS }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: ./.github/docker/debian-12/
file: ./.github/docker/debian-12/Dockerfile
push: true
tags: symless/debian:12
platforms: linux/amd64,linux/arm64