Update .forgejo/workflows/docker-build.yml
This commit is contained in:
@@ -1,9 +1,17 @@
|
||||
name: Docker Build single node
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request: {}
|
||||
|
||||
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:
|
||||
build-image:
|
||||
name: Build image
|
||||
@@ -38,6 +46,11 @@ jobs:
|
||||
tee /etc/apt/sources.list.d/docker.list > /dev/null
|
||||
apt-get update
|
||||
apt-get install -y docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
|
||||
- name: Build image
|
||||
run: |
|
||||
docker build -t radius .
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: context
|
||||
push: true
|
||||
provenance: false
|
||||
platforms: linux/amd64, linux/arm64
|
||||
tags: ${{ env.FORGEJO_HOST }}/${{ github.actor }}/${{ env.CONTAINER_NAME }}:latest
|
||||
Reference in New Issue
Block a user