38 lines
959 B
YAML
38 lines
959 B
YAML
name: build-container
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
|
|
jobs:
|
|
docker:
|
|
runs-on: pi
|
|
container:
|
|
image: scm.project42.io/elia/docker-actions-container:latest
|
|
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
|
|
|
|
- name: Login to Forgejo Container Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: scm.project42.io
|
|
username: ${{ github.repository_owner }}
|
|
password: ${{ secrets.REPOSITORY_SECRET }}
|
|
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: .
|
|
platforms: linux/arm64
|
|
push: true
|
|
tags: |
|
|
scm.project42.io/elia/ansible-actions-container:latest
|
|
scm.project42.io/elia/ansible-actions-container:python-3.12.2
|