mirror of
https://github.com/TheNetworkGuy/netbox-zabbix-sync.git
synced 2025-07-16 12:12:57 -06:00
added container building workflow
This commit is contained in:
parent
142aae75e0
commit
e05c35a3ea
17
.github/workflows/publish-image.yml
vendored
Normal file
17
.github/workflows/publish-image.yml
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
name: Publish Docker image to GHCR
|
||||||
|
|
||||||
|
on:
|
||||||
|
push
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build_and_publish:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Login to GHCR.io
|
||||||
|
run: echo "${{ secret.GHCR_PAT }}" | docker login --username ${{ secret.GHCR_USER }} --password-stdin ghcr.io
|
||||||
|
- name: Build and tag image
|
||||||
|
run: docker build . -t ghcr.io/${{ secret.GHCR_USER }}/netbox-zabbix-sync:latest
|
||||||
|
- name: Push image to GHCR.io
|
||||||
|
run: docker push ghcr.io/${{ secret.GHCR_USER }}/netbox-zabbix-sync:latest
|
||||||
|
|
Loading…
Reference in New Issue
Block a user