ansible split build
Some checks failed
Some checks failed
This commit is contained in:
parent
ffe5142e0d
commit
5297197289
3 changed files with 76 additions and 79 deletions
50
.forgejo/workflows/ansible.yml-qemu
Normal file
50
.forgejo/workflows/ansible.yml-qemu
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
# Workflow name
|
||||
name: Build and Push Ansible Container
|
||||
|
||||
# Run-name for each workflow run
|
||||
run-name: Build and Push Ansible Container
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- 'containers/ansible/**'
|
||||
- '.forgejo/workflows/ansible.yml'
|
||||
workflow_dispatch: {}
|
||||
schedule:
|
||||
- cron: '0 20 * * 5' # Runs every Friday at 8 PM UTC
|
||||
|
||||
env:
|
||||
CONTAINER_NAME: ansible
|
||||
# USER: ${{ github.actor }}
|
||||
USER: hbms
|
||||
|
||||
jobs:
|
||||
build-and-push:
|
||||
# runs-on: docker
|
||||
runs-on: arm64
|
||||
container:
|
||||
image: ghcr.io/catthehacker/ubuntu:act-22.04
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to Forgejo Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ vars.REGISTRY }}
|
||||
username: ${{ env.USER }}
|
||||
password: ${{ secrets.PACKAGE_TOKEN }}
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: ./containers/ansible/
|
||||
file: ./containers/ansible/Dockerfile
|
||||
push: true
|
||||
provenance: false
|
||||
platforms: linux/amd64, linux/arm64
|
||||
tags: ${{ vars.REGISTRY }}/${{ env.USER }}/${{ env.CONTAINER_NAME }}:latest
|
||||
Loading…
Add table
Add a link
Reference in a new issue