valhalla-app-container/.forgejo/workflows/build.yaml

38 lines
1,018 B
YAML
Raw Normal View History

2024-08-03 00:26:51 -04:00
name: Build And Publish Docker
on:
push:
branches:
2024-08-03 00:27:20 -04:00
- "main"
2024-08-03 00:26:51 -04:00
jobs:
build:
runs-on: debian-bookworm
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- name: Install deps
run: curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@master
- name: Login to Self-Hosted Registry
uses: docker/login-action@v2
with:
registry: codeberg.org
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
2024-08-03 00:27:56 -04:00
- name: Build and Push
2024-08-03 00:26:51 -04:00
uses: docker/build-push-action@v4
with:
builder: ${{ steps.buildx.outputs.name }}
context: ./valhalla-app
file: ./valhalla-app/Dockerfile
platforms: linux/amd64
push: true
tags: |
"git.myco.systems/brooke/valhalla-app-container:latest"