From c10f2895fdb4dd3d516c70bc0acaf9f8e38e40f8 Mon Sep 17 00:00:00 2001 From: James Mills Date: Fri, 4 Oct 2024 00:56:03 +1000 Subject: [PATCH] Fix workflows --- .gitea/workflows/build.yml | 2 +- .gitea/workflows/publish.yml | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 .gitea/workflows/publish.yml diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index d7e315b..3fb9c3b 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -1,6 +1,6 @@ --- -name: Build +name: 🛠️ Build on: push: diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml new file mode 100644 index 0000000..45450ee --- /dev/null +++ b/.gitea/workflows/publish.yml @@ -0,0 +1,33 @@ +--- + +name: 🚀 Publish + +on: + push: + branches: [main] + +env: + REGISTRY: r.mills.io + IMAGE: prologic/zs.mills.io + TAG: latest + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v3 + - name: Setup Docker Buildx + uses: actions/setup-buildx@v2 + - name: Login to Registry + uses: actions/docker-login@v2 + with: + registry: ${{ env.REGISTRY }} + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_PASS }} + - name: Build and Push Image + uses: actions/docker-build-push@v4 + with: + context: . + push: true + tags: ${{ env.REGISTRY}}/${{ env.IMAGE }}:${{ env.TAG }}