Skip to content
Open
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 3 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,18 @@ jobs:
test:
runs-on: ubuntu-latest
env:
NAUTOBOT_VER: "2.3.1"
NAUTOBOT_VER: "2.4.21"
PYTHON_VER: "3.11"
steps:
- name: "Get go-nautobot code"
uses: actions/checkout@v3
- name: "Set up Docker Compose"
run: |
curl -L "https://github.com/docker/compose/releases/download/v2.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
- name: "Run tests"
run: |
cd development
docker-compose --project-name go_nautobot -f docker-compose.yml up --build --abort-on-container-exit --exit-code-from oapi
docker compose --project-name go_nautobot -f docker-compose.yml up --build --abort-on-container-exit --exit-code-from oapi
env:
NAUTOBOT_URL: "http://nautobot:8080/api/"
NAUTOBOT_TOKEN: "0123456789abcdef0123456789abcdef01234567"
- name: "Tear down Nautobot"
run: "docker-compose --project-name go_nautobot -f development/docker-compose.yml down -v"
run: "docker compose --project-name go_nautobot -f development/docker-compose.yml down -v"
if: always()
12 changes: 4 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,17 @@ on:

jobs:
release-go-nautobot:
runs-on: "ubuntu-20.04"
runs-on: ubuntu-latest
env:
NAUTOBOT_VER: "${{ github.event.inputs.tag }}"
PYTHON_VER: "3.9"
PYTHON_VER: "3.11"
steps:
- name: "Get go-nautobot generator code"
uses: actions/checkout@v3
- name: "Set up Docker Compose"
run: |
curl -L "https://github.com/docker/compose/releases/download/v2.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
- name: "Start Nautobot and Generator"
run: |
cd development
docker-compose --project-name go_nautobot -f docker-compose.yml up --build --abort-on-container-exit
docker compose --project-name go_nautobot -f docker-compose.yml up --build --abort-on-container-exit
- name: "Commit Changes"
run: |
TAG=v$( cat api/nautobot_version )
Expand All @@ -42,7 +38,7 @@ jobs:
slack-notify:
needs:
- "release-go-nautobot"
runs-on: "ubuntu-20.04"
runs-on: ubuntu-latest
env:
SLACK_WEBHOOK_URL: "${{ secrets.SLACK_WEBHOOK_URL }}"
SLACK_MESSAGE: >-
Expand Down
Loading