name: Build and Push on: push: branches: - main jobs: build-and-push: runs-on: ["amd64", "dev"] steps: # Step 1: Checkout the repository - name: Checkout code uses: actions/checkout@v3 # Step 2: Log in to Forgejo's registry - name: Log in to local registry env: INSTANCE: gitea.ceperka.net USERNAME: cx run: echo "${{ secrets.CICD_TOKEN }}" | docker login $INSTANCE -u "cx" --password-stdin # Step 3: Build the project - name: Build the project run: task build # Step 4: Push the build - name: Push the build run: task push