bingo/.gitea/workflows/build.yaml

30 lines
836 B
YAML
Raw Normal View History

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
2024-09-20 13:42:50 -04:00
- name: login to container registry
uses: docker/login-action@v3
with:
2024-09-20 13:48:05 -04:00
registry: git.hl.srp.life
2024-09-20 13:58:15 -04:00
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:
2024-09-20 13:39:41 -04:00
context: .
file: ./Dockerfile
platforms: |
linux/amd64
linux/arm64
push: true
2024-09-20 13:39:41 -04:00
tags: |
2024-09-20 13:48:05 -04:00
${{ gitea.repository_owner }}/${{ gitea.repository }}:dev