name: "Build EchoIP" on: push: branches: - "main" schedule: - cron: '0 12 * * *' jobs: build: name: "Build EchoIP" runs-on: ubuntu-latest steps: - name: Install Docker run: curl -fsSL https://get.docker.com | sh - name: Set up QEMU uses: https://github.com/docker/setup-qemu-action@v2 - name: Set up Docker Buildx uses: https://github.com/docker/setup-buildx-action@v2 - name: "Login to Private Container Registry" uses: https://github.com/docker/login-action@v2 with: registry: git.ponz.io username: ${{ gitea.repository_owner }} password: ${{ secrets.REG_TOKEN }} - name: "Checkout" uses: https://github.com/actions/checkout@v3 repository: https://github.com/mpolden/echoip - name: Build and push uses: https://github.com/docker/build-push-action@v4 with: context: . platforms: linux/amd64 push: true tags: | git.ponz.io/elia/echoip:latest