From 265115104bddb26edb6c9d8ea5343453a2746636 Mon Sep 17 00:00:00 2001 From: Matthew Fisher Date: Wed, 16 Oct 2024 08:03:27 -0500 Subject: [PATCH] Update .gitea/workflows/docker_build.yaml --- .gitea/workflows/docker_build.yaml | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/.gitea/workflows/docker_build.yaml b/.gitea/workflows/docker_build.yaml index e69de29..3ed137a 100644 --- a/.gitea/workflows/docker_build.yaml +++ b/.gitea/workflows/docker_build.yaml @@ -0,0 +1,31 @@ +name: ci + +on: + push: + branches: + - 'release' + +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/apache-config:latest + docker push harbor.fisherhome.xyz/library/apache-config:latest \ No newline at end of file