Files
gem5/.github/workflows/docker-build.yaml
Bobby R. Bruce cae4852606 misc: Fix docker-build.yaml (#1588)
This is an attempt to get the docker build workflow working
2024-09-21 07:08:12 -07:00

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