2024-09-20 00:33:32 -04:00
|
|
|
name: build
|
|
|
|
run-name: ${{ gitea.actor }} is building.
|
2024-09-20 00:36:31 -04:00
|
|
|
on: [push]
|
2024-09-20 00:33:32 -04:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-09-20 13:31:51 -04:00
|
|
|
- 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:42:50 -04:00
|
|
|
username: ${{ gitea.actor }}
|
2024-09-20 13:48:50 -04:00
|
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
2024-09-20 00:33:32 -04:00
|
|
|
- name: checkout code
|
|
|
|
uses: actions/checkout@v4
|
2024-09-20 13:31:51 -04:00
|
|
|
- name: build and push to registry
|
|
|
|
uses: docker/build-push-action@v6
|
2024-09-20 00:33:32 -04:00
|
|
|
with:
|
2024-09-20 13:39:41 -04:00
|
|
|
context: .
|
|
|
|
file: ./Dockerfile
|
|
|
|
platforms: |
|
|
|
|
linux/amd64
|
|
|
|
linux/arm64
|
2024-09-20 13:31:51 -04:00
|
|
|
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
|