2024-03-30 21:19:26 +00:00
|
|
|
name: build-container
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'main'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
docker:
|
|
|
|
runs-on: pi
|
|
|
|
container:
|
2024-03-30 23:21:29 +00:00
|
|
|
image: scm.project42.io/elia/docker-actions-container:latest
|
2024-03-31 09:10:57 +00:00
|
|
|
options: --sysctl net.ipv6.conf.all.disable_ipv6=0 --privileged
|
2024-03-30 21:19:26 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Set up QEMU
|
|
|
|
uses: docker/setup-qemu-action@v3
|
|
|
|
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
|
2024-03-30 23:36:45 +00:00
|
|
|
- name: Login to Forgejo Container Registry
|
|
|
|
uses: docker/login-action@v3
|
|
|
|
with:
|
|
|
|
registry: scm.project42.io
|
|
|
|
username: ${{ github.repository_owner }}
|
|
|
|
password: ${{ secrets.REPOSITORY_SECRET }}
|
|
|
|
|
2024-03-30 21:19:26 +00:00
|
|
|
- name: Build and push
|
|
|
|
uses: docker/build-push-action@v5
|
|
|
|
with:
|
|
|
|
context: .
|
2024-03-30 22:38:57 +00:00
|
|
|
platforms: linux/arm64
|
2024-03-30 22:11:21 +00:00
|
|
|
push: true
|
2024-03-30 23:19:07 +00:00
|
|
|
tags: |
|
|
|
|
scm.project42.io/elia/ansible-actions-container:latest
|
|
|
|
scm.project42.io/elia/ansible-actions-container:python-3.12.2
|