mirror of
https://github.com/TheNetworkGuy/netbox-zabbix-sync.git
synced 2025-07-16 04:02:56 -06:00
testing workflow
This commit is contained in:
parent
5922d3e8ae
commit
bf325c6839
23
.github/workflows/publish-image.yml
vendored
23
.github/workflows/publish-image.yml
vendored
@ -1,7 +1,16 @@
|
|||||||
name: Publish Docker image to GHCR
|
name: Publish Docker image to GHCR on a new version
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- dockertest
|
||||||
|
# tags:
|
||||||
|
# - [0-9]+.*
|
||||||
|
|
||||||
|
env:
|
||||||
|
REGISTRY: ghcr.io
|
||||||
|
IMAGE_NAME: ${{ github.repository }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test_quality:
|
test_quality:
|
||||||
@ -10,10 +19,10 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Login to GHCR.io
|
- name: Login to ghcr.io
|
||||||
run: echo "${{ secrets.GHCR_PAT }}" | docker login --username ${{ secrets.GHCR_USER }} --password-stdin ghcr.io
|
run: echo "${{ secrets.GHCR_PAT }}" | docker login --username ${{ github.actor }} --password-stdin ${{ env.REGISTRY }}
|
||||||
- name: Build and tag image
|
- name: Build and tag image
|
||||||
run: docker build . -t ghcr.io/${{ secrets.GHCR_USER }}/netbox-zabbix-sync:latest
|
run: docker build . -t ${{ env.REGISTRY}}/${{ env.IMAGE_NAME }}:latest
|
||||||
- name: Push image to GHCR.io
|
- name: Push image to ghcr.io
|
||||||
run: docker push ghcr.io/${{ secrets.GHCR_USER }}/netbox-zabbix-sync:latest
|
run: docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user