Skip to content

feat: Workflow to synchronize Nautobot Device to Ironic Node #6

feat: Workflow to synchronize Nautobot Device to Ironic Node

feat: Workflow to synchronize Nautobot Device to Ironic Node #6

---
name: build-container-images
on:
pull_request:
paths:
- 'argo-workflows/generic/containers/*'
- 'argo-workflows/ironic-nautobot-sync/containers/*'
push:
branches:
- main
paths:
- 'argo-workflows/generic/containers/*'
- 'argo-workflows/ironic-nautobot-sync/containers/*'
jobs:
build-ghcr-registry:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v4
- name: Set up 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: Build and deploy Python 3.11 image
uses: docker/build-push-action@v5
with:
context: argo-workflows/generic/
file: argo-workflows/generic/containers/Dockerfile.python311_alpine
# push for all main branch commits and manually triggered runs
# push: ${{ github.event_name != 'pull_request' }}
push: true
tags: ghcr.io/rackerlabs/understack_argo-python3.11.8-alpine3.19:latest
- name: Build and deploy Python 3.12 image
uses: docker/build-push-action@v5
with:
context: argo-workflows/generic/
file: argo-workflows/generic/containers/Dockerfile.python311_alpine
# push for all main branch commits and manually triggered runs
push: ${{ github.event_name != 'pull_request' }}
tags: ghcr.io/rackerlabs/understack_argo-python3.12.2-alpine3.19:latest
- name: Build and deploy Python 3.11 with Ironic client
uses: docker/build-push-action@v5
with:
context: argo-workflows/generic/
file: argo-workflows/ironic-nautobot-sync/containers/Dockerfile.ironic
# push for all main branch commits and manually triggered runs
push: ${{ github.event_name != 'pull_request' }}
tags: ghcr.io/rackerlabs/understack_argo-ironic-client-python3.11.8