45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
name: Docker Build single node
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
# Uncomment to run only when specific files change
|
|
# paths:
|
|
# - '**/ansible-navigator.yaml'
|
|
# - '**/execution-environment.yml'
|
|
|
|
env:
|
|
# Set this to the public IP or hostname of your registry,
|
|
# whichever you use to reach it from your desktop/laptop
|
|
FORGEJO_HOST: git.gamezonline.me
|
|
CONTAINER_NAME: radius
|
|
|
|
jobs:
|
|
docker:
|
|
runs-on: node-bookworm
|
|
steps:
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Login to Docker Hub
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ${{ env.FORGEJO_HOST }}
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.PACKAGE_TOKEN }}
|
|
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v3
|
|
with:
|
|
platforms: 'amd64,arm64'
|
|
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
file: ./Dockerfile
|
|
platforms: linux/amd64,linux/arm64
|
|
push: true
|
|
tags: ${{ env.FORGEJO_HOST }}/${{ github.actor }}/${{ env.CONTAINER_NAME }}:latest |