Skip to content

ci: use lab runner

ci: use lab runner #4

Workflow file for this run

name: Publish Docker Image
concurrency:
group: ci-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
on:
push:
branches:
- master
tags:
- "v*"
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build-and-push-image:
name: Build Docker container and push it to GitHub registry
runs-on: lab
permissions:
packages: write
contents: read
steps:
- name: Check out the repo
uses: actions/checkout@v5
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version: stable
cache: true
- name: Login to ghcr.io
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Publish images
run: |
just --timestamp oci_repo=ghcr.io push