2024-12-30 14:20:35 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
docker:
|
2024-12-30 16:32:47 +00:00
|
|
|
runs-on: ubuntu-22.04
|
2024-12-30 14:20:35 +00:00
|
|
|
steps:
|
2025-01-11 11:32:11 +00:00
|
|
|
- run: "echo reg: ${{ env.GITHUB_SERVER_URL }}, act: ${{ github.actor }}, sec: ${{ secrets.GITHUB_TOKEN }}"
|
2024-12-30 14:20:35 +00:00
|
|
|
-
|
|
|
|
name: Login to Registry
|
|
|
|
uses: docker/login-action@v3
|
|
|
|
with:
|
|
|
|
registry: ${{ env.GITHUB_SERVER_URL }}
|
2024-12-30 16:56:06 +00:00
|
|
|
username: ${{ github.actor }}
|
|
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
2024-12-30 14:53:14 +00:00
|
|
|
# -
|
|
|
|
# name: Set up QEMU
|
|
|
|
# uses: docker/setup-qemu-action@v3
|
2024-12-30 14:20:35 +00:00
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
-
|
|
|
|
name: Build and push
|
|
|
|
uses: docker/build-push-action@v6
|
|
|
|
with:
|
|
|
|
push: true
|
2024-12-30 16:48:13 +00:00
|
|
|
tags: git.mstar.dev/${{ env.GITHUB_REPOSITORY }}:latest
|