From d1568f1b97c35e24d4f5340dcf79a489c4a568bc Mon Sep 17 00:00:00 2001 From: Jeremy McClure Date: Sat, 22 Mar 2025 19:37:10 -0400 Subject: [PATCH] add docker image build and push --- .gitea/workflows/release.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .gitea/workflows/release.yaml diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml new file mode 100644 index 0000000..7cf0d34 --- /dev/null +++ b/.gitea/workflows/release.yaml @@ -0,0 +1,27 @@ +name: Docker Build and Push +run-name: ${{ gitea.actor }} is running Docker build and push + +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Login to local Gitea registry + uses: docker/login-action@v3 + with: + registry: ${{ vars.REGISTRY }} + username: ${{ vars.ACTIONS_USER }} + password: ${{ secrets.PACKAGES_TOKEN }} + - name: Docker Build and push + uses: docker/build-push-action@v6 + with: + context: . + push: true + tags: ${{ vars.REGISTRY }}/${{ gitea.repository }}:latest \ No newline at end of file