Skip to content

God that was a pain but it's more accurate now #117

God that was a pain but it's more accurate now

God that was a pain but it's more accurate now #117

Workflow file for this run

name: Build Service
on:
push:
branches:
- main
workflow_dispatch:
jobs:
check:
uses: ./.github/workflows/check.yml
build:
needs: [check]
runs-on: ubuntu-latest
steps:
- name: Correct env
run: echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}
- name: Check out code into the proper directory
uses: actions/checkout@v4
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build container
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ghcr.io/${{ env.REPO }}:latest
platforms: linux/amd64
cache-from: type=gha
cache-to: type=gha,mode=max
deploy:
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Notify server of updates
run: "curl --max-time 30 -H 'Authorization: Bearer ${{ secrets.RESTART_TOKEN }}' https://hooks.valk.sh/mcping"