add separate compile step

should be run on every push to a branch to check for compilability
This commit is contained in:
mightypanders 2023-06-17 01:20:54 +02:00
parent f78e4c3e3e
commit 7c8072b295

View File

@ -0,0 +1,17 @@
name: Compile the repository
on: [push]
env:
REGISTRY: gitea.brudi.xyz
IMAGE_NAME: ${{ gitea.repository }}
USER: ${{ gitea.actor }}
jobs:
compile:
runs-on: ubuntu-latest
container: catthehacker/ubuntu:act-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Build Container
run: docker build -t "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest" .