bingo/.gitea/workflows/build.yaml
Seraphim R. Pardee 10259ca924
Some checks failed
build / build (push) Failing after 8m24s
test / test (push) Successful in 36s
Add Dockerfile and test/build action.
Fix indentation.

Use patched upload-artifact action.

Update git URL in module.

Divide workflows and give them order, add badges.

Apparently workflow_run isn't supported yet...

Update build to build container and push to registry.

Fix some docker registry things.

Use internal IPv4 for registry.

Missed a spot.

I think this order makes a difference.

force HTTP use in login

this?

Use GITHUB_TOKEN instead.

idk man i'm just gonna rebase this to clean the log

Use a PAT.

Copy files over correctly.

blah
2024-09-20 14:18:42 -04:00

30 lines
782 B
YAML

name: build
run-name: ${{ gitea.actor }} is building.
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: docker buildx setup
uses: docker/setup-buildx-action@v3
- name: login to container registry
uses: docker/login-action@v3
with:
registry: git.hl.srp.life
username: ${{ gitea.repository_owner }}
password: ${{ secrets.ACTIONS_KEY }}
- name: checkout code
uses: actions/checkout@v4
- name: build and push to registry
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
platforms: |
linux/amd64
linux/arm64
push: true
tags: |
${{ gitea.repository }}:dev