2024-03-30 21:19:26 +00:00
|
|
|
name: build-container
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'main'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
docker:
|
|
|
|
runs-on: pi
|
|
|
|
container:
|
|
|
|
image: python:3.12.2-slim-bookworm
|
|
|
|
steps:
|
|
|
|
- name: Install dependencies
|
|
|
|
id: dependencies
|
|
|
|
run: |
|
2024-03-30 22:37:58 +00:00
|
|
|
apt-get update > /dev/null
|
|
|
|
apt-get install -y -qq nodejs curl git > /dev/null
|
2024-03-30 21:54:18 +00:00
|
|
|
curl -sSL https://get.docker.com/ | sh
|
|
|
|
|
2024-03-30 21:19:26 +00:00
|
|
|
- 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: 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
|
|
|
github_token: ${{ secrets.REPOSITORY_SECRET }}
|
|
|
|
tags: |
|
|
|
|
scm.project42.io/elia/ansible-actions-container:latest
|
|
|
|
scm.project42.io/elia/ansible-actions-container:python-3.12.2
|