name: geo-service on: push: branches: [master] pull_request: branches: [master] jobs: build: runs-on: ubuntu-latest env: BUILDTOOLS_CONTENT: ${{ vars.BUILDTOOLS_CONTENT }} GITEA_TOKEN: ${{ secrets.REGISTRY_TOKEN }} GITEA_REPOSITORY: ${{ gitea.repository }} steps: - uses: actions/checkout@v4 - uses: buildtool/setup-buildtools-action@v1 - name: Show config run: build --config - name: Build and push run: build --verbose && push --verbose deploy-prod: needs: build if: gitea.ref == 'refs/heads/master' runs-on: ubuntu-latest env: BUILDTOOLS_CONTENT: ${{ vars.BUILDTOOLS_CONTENT }} GITEA_TOKEN: ${{ secrets.REGISTRY_TOKEN }} GITEA_REPOSITORY: ${{ gitea.repository }} environment: prod steps: - uses: actions/checkout@v4 - uses: buildtool/setup-buildtools-action@v1 - name: Deploy run: deploy prod