name: Build and push NGINX image on: push: branches: - "main" paths: - "nginx/**" - ".forgejo/workflows/nginx.yaml" # Update image every 2 weeks schedule: - cron: "30 0 1,15 * *" jobs: build: runs-on: cimaster-latest steps: - name: Checkout uses: actions/checkout@v4 - name: Setup Docker Buildx uses: https://github.com/docker/setup-buildx-action@v3 - name: Login to Container Registry uses: https://github.com/docker/login-action@v3 with: username: thetadev256 password: ${{ secrets.DOCKER_TOKEN }} - name: Build NGINX docker image uses: https://github.com/docker/build-push-action@v6 with: push: true tags: thetadev256/nginx:latest,thetadev256/nginx:bookworm platforms: linux/amd64,linux/arm64 context: nginx file: nginx/Dockerfile