Skip to content

Commit

Permalink
Merge pull request #68 from nautobot/gha-cd
Browse files Browse the repository at this point in the history
Add Github Action Release Workflow
  • Loading branch information
jtdub authored May 18, 2023
2 parents ab1cb3a + 3649e4c commit 17a4a06
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: "RELEASE"

on: # yamllint disable
release:
types: [created]

jobs:
release:
runs-on: "ubuntu-latest"

steps:
- name: "CHECKOUT REPOSITORY"
uses: "actions/checkout@v2"

- name: "SETUP DOCKER BUILDX"
uses: "docker/setup-buildx-action@v1"

- name: "LOGIN TO DOCKER HUB"
uses: "docker/login-action@v1"
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: "BUILD AND PUSH NAUTOBOT-LAB DOCKER IMAGE"
uses: "docker/build-push-action@v2"
with:
context: .
push: true
tags: |
networktocode/nautobot-lab:latest
networktocode/nautobot-lab:${{ github.event.release.tag_name }}

0 comments on commit 17a4a06

Please sign in to comment.