From edd346763a07803ba25048579e44a9dff3c4a190 Mon Sep 17 00:00:00 2001 From: ChrQR Date: Sat, 11 May 2024 01:00:50 +0200 Subject: [PATCH] added production .env --- .env.production | 1 + .gitea/workflows/pipeline.yaml | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 .env.production create mode 100644 .gitea/workflows/pipeline.yaml diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..037e27c --- /dev/null +++ b/.env.production @@ -0,0 +1 @@ +PLACES_API=AIzaSyBf1ip4XogdC6XmbfDhxS_RJDOSieycJpQ \ No newline at end of file diff --git a/.gitea/workflows/pipeline.yaml b/.gitea/workflows/pipeline.yaml new file mode 100644 index 0000000..5d1c374 --- /dev/null +++ b/.gitea/workflows/pipeline.yaml @@ -0,0 +1,32 @@ +name: Docker Build & Publish + +on: + push: + branches: [main] + +jobs: + build: + name: Build Docker + runs-on: ubuntu-latest + + steps: + - name: Check out repository code 🛎️ + uses: actions/checkout@v4 + + - name: Set up Docker Buildx 🚀 + uses: docker/setup-buildx-action@v3 + + - name: Login to Docker Hub 🚢 + uses: docker/login-action@v3 + with: + username: ${{ secrets.REGISTRY_USERNAME}} + password: ${{ secrets.RANNES_REGISTRY}} + + - name: Build and push 🏗️ + uses: docker/build-push-action@v2 + with: + context: . + file: ./Dockerfile + push: true + tags: | + ${{ secrets.REGISTRY_USERNAME}}/local-weather:latest \ No newline at end of file