Skip to content

Build docker image and publish #131

Build docker image and publish

Build docker image and publish #131

name: Build docker image and publish
on:
push:
branches: [main]
schedule:
# build and publish a new base image every week at 04:17am on mondays
- cron: "17 04 * * 1"
# let us manually trigger a build
workflow_dispatch:
env:
BASE_IMAGE_NAME: base-docker
ACTION_IMAGE_NAME: base-action
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- uses: extractions/setup-just@69d82fb0233557aec017ef13706851d0694e0f1d
- name: Build image
run: just build
- name: Run tests
run: just test
- name: Run lint
run: just lint
- name: Log into GitHub Container Registry
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin
- name: Push image to GitHub Container Registry
run: just publish-images