From bafbe8aee947b32df7483a93c75cfa0e42752d90 Mon Sep 17 00:00:00 2001 From: watsonb8 Date: Fri, 7 Jun 2024 10:12:30 -0500 Subject: [PATCH] Adding ci yaml --- .gitea/workflows/ci.yaml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .gitea/workflows/ci.yaml diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml new file mode 100644 index 0000000..1825aad --- /dev/null +++ b/.gitea/workflows/ci.yaml @@ -0,0 +1,34 @@ +name: Build and Publish Docker Image +on: + workflow_dispatch: + push: + branches: + - master + +jobs: + build_and_publish: + name: Build and Publish Docker + steps: + - uses: actions/checkout@v4 + - name: Log in to Docker Registry + uses: docker/login-action@3.2.0 + with: + registry: gitea.watsonlabs.net/watsonb8/groupme + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@v5 + with: + images: gitea.watsonlabs.net/watsonb8/groupme + + - name: Build and push Docker image + id: push + uses: docker/build-push-action@v5 + with: + context: . + file: ./Dockerfile + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file