30 lines
827 B
YAML
30 lines
827 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: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
- 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_owner }}/${{ gitea.repository }}:dev
|