docker-images/.forgejo/workflows/hello-world.yaml
ThetaDev 25d5262a3e
All checks were successful
Build and push NGINX image / build (push) Successful in 5m2s
Build and push cimaster image / build (push) Successful in 18m59s
Build and push cimaster image / test (push) Successful in 2m31s
chore: update workflows to use buildkit
2025-07-20 17:55:09 +02:00

35 lines
886 B
YAML

name: Build and push NGINX image
on:
push:
branches:
- "main"
paths:
- "hello-world/**"
- ".forgejo/workflows/hello-world.yaml"
workflow_dispatch:
jobs:
build:
runs-on: cimaster-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Docker Buildx
uses: https://github.com/docker/setup-buildx-action@v3
- name: Login to Container Registry
uses: https://github.com/docker/login-action@v3
with:
username: thetadev256
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build Hello World docker image
uses: https://github.com/docker/build-push-action@v6
with:
push: true
tags: thetadev256/hello-world:latest
platforms: linux/amd64,linux/arm64
context: hello-world
file: hello-world/Dockerfile