name: Docker Build & Publish on: push: branches: [main] jobs: build: name: Build Docker runs-on: ubuntu-latest steps: # - name: Make envfile # uses: SpicyPizza/create-envfile@v2.0 # with: # envkey_PLACES_API: ${{ secrets.PLACES_API }} # directory: ./ # file_name: .env.production # fail_on_empty: false # sort_keys: false - name: Check out repository code 🛎️ uses: actions/checkout@v4 - name: Set up Docker Buildx 🚀 uses: docker/setup-buildx-action@v3 - name: Login to rannes.dev registry 🚢 uses: docker/login-action@v3 with: registry: gitea.rannes.dev 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: | gitea.rannes.dev/rannes.dev/local-weather:latest