Add .github/workflows/build_image.yaml
This commit is contained in:
parent
0c99ff8b56
commit
5cbb16524c
31
.github/workflows/build_image.yaml
vendored
Normal file
31
.github/workflows/build_image.yaml
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
name: ci
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'main'
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
-
|
||||
name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
-
|
||||
name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
-
|
||||
name: Login to Docker Hub
|
||||
uses: SeptBlast/docker-login@v1.1.2
|
||||
with:
|
||||
login-server: harbor.fisherhome.xyz
|
||||
username: ${{ secrets.HARBOR_USERNAME }}
|
||||
password: ${{ secrets.HARBOR_PASSWORD }}
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
- name: Build and push
|
||||
run: |
|
||||
docker login --username ${{ secrets.HARBOR_USERNAME }} --password ${{ secrets.HARBOR_PASSWORD }} harbor.fisherhome.xyz
|
||||
docker build --no-cache ./ -t harbor.fisherhome.xyz/library/netbox:latest
|
||||
docker push harbor.fisherhome.xyz/jammz/library/netbox:latest
|
Loading…
Reference in New Issue
Block a user