runner-images/.forgejo/workflows/go.yml

33 lines
992 B
YAML
Raw Normal View History

2024-09-16 17:17:26 +00:00
name: Build Runner Go
2024-05-09 19:56:02 +00:00
on:
push:
branches:
- 'master'
jobs:
2024-09-16 17:17:26 +00:00
build_go:
2024-05-09 19:56:02 +00:00
runs-on: 'priviliged'
steps:
- name: Install Docker
run: |
rm $(which docker) && curl -fsSL https://get.docker.com | sh
- name: Set up QEMU
uses: 'https://git.euph.dev/actions/docker-setup-qemu@v3'
- name: Setup Buildx
uses: 'https://git.euph.dev/actions/docker-setup-buildx@v3'
- name: Login to Registry
uses: 'https://git.euph.dev/actions/docker-login@v3'
with:
registry: git.euph.dev
username: ${{ secrets.DEPLOY_USER }}
password: ${{ secrets.DEPLOY_SECRET }}
2024-09-16 17:17:26 +00:00
- name: Build and push Go image
2024-05-09 19:56:02 +00:00
uses: 'https://git.euph.dev/actions/docker-build-push@v5'
with:
2024-09-16 17:17:26 +00:00
context: "{{defaultContext}}:images/actions/go"
2024-05-09 19:56:02 +00:00
push: true
tags: |
2024-09-16 17:17:26 +00:00
git.euph.dev/actions/runner-go:latest
git.euph.dev/actions/runner-go:${{ gitea.run_number }}