Skip to content

Fix invalid command

Fix invalid command #5

Workflow file for this run

name: netbox-init
on:
push:
workflow_dispatch:
schedule:
- cron: '15 12 * * 1'
env:
REGISTRY: quay.io
IMAGE: zebbra/netbox-init
PLATFORMS: "linux/amd64,linux/arm64"
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Generate image tags
id: meta
uses: docker/metadata-action@v5
with:
images: |
${{ env.REGISTRY }}/${{ env.IMAGE }}
tags: |
type=raw, value=latest
type=sha
- name: Login to container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: ${{ env.PLATFORMS }}
tags: ${{ steps.meta.outputs.tags }}