Some checks failed
Build and Publish Runner Image / build (push) Failing after 1m37s
32 lines
917 B
YAML
32 lines
917 B
YAML
name: Build and Publish Runner Image
|
|
|
|
on:
|
|
push:
|
|
branches: [main, master]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Setup Docker Buildx
|
|
uses: docker/setup-buildx-action@v2
|
|
|
|
- name: Login to Gitea Reg
|
|
run: |
|
|
echo "${{ secrets.RUNNER_TOKEN }}" | docker login git.alexav.gg -u ${{ gitea.actor }} --password-stdin
|
|
|
|
- name: Build Docker Image
|
|
uses: docker/build-push-action@v4
|
|
with:
|
|
context: .
|
|
push: true
|
|
tags: |
|
|
git.alexav.gg/${{ gitea.repository }}:latest
|
|
git.alexav.gg/${{ gitea.repository }}:${{ gitea.sha }}
|
|
cache-from: type=registry,ref=git.alexav.gg/${{ gitea.repository }}:buildcache
|
|
cache-to: type=registry, ref=git.alexav.gg/${{ gitea.repository }}:buildcache,mode=max
|