Skip to content

fix(deps): update module github.com/bl4ko/go-devicetype-library to v0… #133

fix(deps): update module github.com/bl4ko/go-devicetype-library to v0…

fix(deps): update module github.com/bl4ko/go-devicetype-library to v0… #133

Workflow file for this run

name: Deploy image to ghcr.io
on:
push:
tags:
- v*
paths:
- cmd/**
- internal/**
- pkg/**
- Dockerfile
- .dockerignore
- .golangci.yml
- go.mod
- go.sum
jobs:
build_and_push:
runs-on: ubuntu-latest
permissions: # Permissions for GITHUB_TOKEN
contents: read
packages: write
steps:
- name: Login to dockerhub
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
with:
username: bl4ko
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to ghcr.io
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
with:
registry: ghcr.io
username: bl4ko
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3
- name: Set created date for image
id: build_date
run: echo "CREATED=$(date -u +"%Y-%m-%dT%H:%M:%SZ")" >> "$GITHUB_OUTPUT"
- name: Build and push final image
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0
with:
platforms: linux/amd64,linux/arm64,linux/386,linux/arm/v6,linux/arm/v7
tags: |
bl4ko/netbox-ssot:latest
bl4ko/netbox-ssot:${{ github.ref_name }}
ghcr.io/bl4ko/netbox-ssot:latest
ghcr.io/bl4ko/netbox-ssot:${{ github.ref_name }}
push: true
build-args: |
VERSION=${{ github.ref_name }}
CREATED=${{ steps.build_date.outputs.CREATED }}
COMMIT=${{ github.sha }}