40 lines
979 B
YAML
40 lines
979 B
YAML
---
|
|
name: Docker images build and push
|
|
|
|
#on:
|
|
# push:
|
|
# branches:
|
|
# - 'develop'
|
|
# paths:
|
|
# - util/dockerfiles/**
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
|
|
jobs:
|
|
bake:
|
|
runs-on: [self-hosted, linux, x64]
|
|
container: ghcr.io/gem5/ubuntu-24.04_all-dependencies:latest
|
|
permissions:
|
|
packages: write
|
|
contents: read
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Docker 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 and push
|
|
uses: docker/bake-action@v5
|
|
with:
|
|
workdir: util/dockerfiles
|
|
push: true
|