Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
RenJiangZhou2163 committed Feb 8, 2025
1 parent 02cf4d3 commit 32422f5
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/NetworkOps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,17 @@ jobs:
load: true
push: true

- name: Build and push Nautobot image with plugins
uses: docker/build-push-action@v5
with:
context: .
file: ./packaging/docker/custom/Dockerfile.nautobot
build-args: |
NAUTOBOT_VERSION=stable-py3.12
tags: ${{ secrets.DOCKER_USERNAME }}/nautobot-plugins:stable-py3.12
load: true
push: true

- name: Build and push image with plugins
uses: docker/build-push-action@v5
with:
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: NetworkOps

on:
push:
branches:
- main
schedule:
- cron: "0 0 * * *"

jobs:
Nautobot-Plugins:
runs-on: ubuntu-latest
strategy:
matrix:
nautobot_version: [latest, stable, stable-py3.12, 2.4]

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push Nautobot image with plugins
uses: docker/build-push-action@v5
with:
context: .
file: ./packaging/docker/custom/Dockerfile.nautobot
build-args: |
NAUTOBOT_VERSION=${{ matrix.nautobot_version }}
tags: ${{ secrets.DOCKER_USERNAME }}/nautobot-plugins:${{ matrix.nautobot_version }}
load: true
push: true

0 comments on commit 32422f5

Please sign in to comment.