Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
version: 2
updates:
- package-ecosystem: pip
directory: /
schedule:
interval: monthly
time: '02:00'
timezone: America/New_York
labels:
- dependencies
target-branch: master
assignees:
- "danner26"
110 changes: 53 additions & 57 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,59 +1,55 @@
name: ci
# ---
# name: ci

on:
push:
branches:
- 'master'
- 'main'
pull_request:
branches:
- 'master'
- 'main'
workflow_dispatch:
release:
types: [published, edited]
# on:
# push:
# branches:
# - 'master'
# - 'main'
# pull_request:
# branches:
# - 'master'
# - 'main'
# workflow_dispatch:
# release:
# types: [published, edited]

jobs:
build-and-push-images:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: |
ghcr.io/minitriga/Netbox-Device-Type-Library-Import
tags: |
type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }}
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}
type=semver,pattern={{major}}.{{minor}}
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to GitHub Container Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v2
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
platforms: linux/amd64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
# jobs:
# build-and-push-images:
# runs-on: ubuntu-latest
# steps:
# -
# name: Checkout
# uses: actions/checkout@v2
# -
# name: Docker meta
# id: meta
# uses: docker/metadata-action@v3
# with:
# images: ghcr.io/netbox-community/Netbox-Device-Type-Library-Import
# tags: |
# type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }}
# type=ref,event=branch
# type=ref,event=pr
# type=semver,pattern={{version}}
# type=semver,pattern={{major}}
# type=semver,pattern={{major}}.{{minor}}
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v1
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v1
# - name: Login to GitHub Container Registry
# if: github.event_name != 'pull_request'
# uses: docker/login-action@v1
# with:
# registry: ghcr.io
# username: ${{ github.repository_owner }}
# password: ${{ secrets.GITHUB_TOKEN }}
# - name: Build and push
# uses: docker/build-push-action@v2
# with:
# context: .
# push: ${{ github.event_name != 'pull_request' }}
# platforms: linux/amd64
# tags: ${{ steps.meta.outputs.tags }}
# labels: ${{ steps.meta.outputs.labels }}
24 changes: 24 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
# close-stale-issues (https://github.com/marketplace/actions/close-stale-issues)
# name: Close stale PRs
# on: # yamllint disable-line rule:truthy
# schedule:
# - cron: 0 4 * * *

# jobs:
# stale:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/stale@v5
# with:
# close-pr-message: >
# This PR has been automatically closed due to lack of activity.
# days-before-stale: 30
# days-before-close: 7
# operations-per-run: 100
# remove-stale-when-updated: false
# stale-pr-label: stale
# stale-pr-message: >
# This PR has been automatically marked as stale because it has not
# had recent activity. It will be closed automatically if no further
# progress is made.