forked from netbox-community/netbox-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (37 loc) · 897 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: release
on:
push:
branches: ['release']
jobs:
build:
runs-on: ubuntu-latest
name: Builds new NetBox Docker Images
env:
GH_ACTION: enable
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Get Version of NetBox Docker
run: |
echo "::set-output name=version::$(cat VERSION)"
shell: bash
# ghcr.io
-
name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
-
id: docker-build
name: Build the image
run: ./build-latest.sh --push
env:
DOCKER_REGISTRY: ghcr.io
DOCKER_ORG: vseth-geco
DOCKER_REPO: netbox
DOCKERFILE: Dockerfile-Plugins
IMAGE_NAMES: ghcr.io/vseth-geco/netbox