Skip to content

CI - Base build environment image #455

CI - Base build environment image

CI - Base build environment image #455

Workflow file for this run

name: CI - Base build environment image
on:
schedule:
- cron: '0 0 * * *' # Run daily at midnight
workflow_dispatch:
jobs:
build_and_push:
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
deployments: read
packages: write
pull-requests: write
security-events: write
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ghcr.io/${{ github.repository }}/machnet_build_base:latest
target: machnet_build_base
file: ./dockerfiles/ubuntu-22.04.dockerfile
cache-from: type=gha
cache-to: type=gha,mode=max