fix: dnsmasq: do not set default bootfile #39
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ironic container builds | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "containers/**" | |
- ".github/workflows/containers.yaml" | |
pull_request: | |
paths: | |
- "containers/**" | |
- ".github/workflows/containers.yaml" | |
workflow_dispatch: | |
jobs: | |
ironic: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
openstack: [2023.1, 2024.1] | |
steps: | |
- name: setup docker buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: login to ghcr.io | |
if: ${{ github.event_name != 'pull_request' }} | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Ironic image metadata | |
id: ironic-meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: ghcr.io/rackerlabs/openstackhelm/ironic | |
tags: | | |
type=sha,enable={{is_default_branch}} | |
type=raw,value=${{ matrix.openstack }}-ubuntu_jammy | |
- name: build and deploy Ironic container image to registry | |
uses: docker/build-push-action@v5 | |
with: | |
context: "{{defaultContext}}:containers" | |
file: Dockerfile.ironic | |
build-args: OPENSTACK_VERSION=${{ matrix.openstack }} | |
push: ${{ github.event_name != 'pull_request' }} | |
tags: ${{ steps.ironic-meta.outputs.tags }} | |
labels: ${{ steps.ironic-meta.outputs.labels }} | |
annotations: ${{ steps.ironic-meta.outputs.annotations }} | |
dnsmasq: | |
runs-on: ubuntu-latest | |
steps: | |
- name: setup docker buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: login to ghcr.io | |
if: ${{ github.event_name != 'pull_request' }} | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: dnsmasq image metadata | |
id: dnsmasq-meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: ghcr.io/rackerlabs/openstackhelm/dnsmasq | |
tags: | | |
type=raw,value=latest,enable={{is_default_branch}} | |
type=sha,enable={{is_default_branch}} | |
type=raw,value=0.0.1 | |
labels: | | |
org.opencontainers.image.title=dnsmasq for Ironic deployed as openstack-helm | |
- name: build and deploy dnsmasq container to registry | |
uses: docker/build-push-action@v5 | |
with: | |
context: "{{defaultContext}}:containers" | |
file: Dockerfile.dnsmasq | |
push: ${{ github.event_name != 'pull_request' }} | |
tags: ${{ steps.dnsmasq-meta.outputs.tags }} | |
labels: ${{ steps.dnsmasq-meta.outputs.labels }} |