Update .forgejo/workflows/docker-build.yml
This commit is contained in:
@@ -1,9 +1,17 @@
|
|||||||
name: Docker Build single node
|
name: Docker Build single node
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
pull_request: {}
|
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:
|
jobs:
|
||||||
build-image:
|
build-image:
|
||||||
name: Build image
|
name: Build image
|
||||||
@@ -38,6 +46,11 @@ jobs:
|
|||||||
tee /etc/apt/sources.list.d/docker.list > /dev/null
|
tee /etc/apt/sources.list.d/docker.list > /dev/null
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
|
apt-get install -y docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
|
||||||
- name: Build image
|
- name: Build and push
|
||||||
run: |
|
uses: docker/build-push-action@v6
|
||||||
docker build -t radius .
|
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