name: Build and push NGINX image on: push: branches: - "main" paths: - "hello-world/**" - ".forgejo/workflows/hello-world.yaml" workflow_dispatch: 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 Hello World docker image uses: https://github.com/docker/build-push-action@v6 with: push: true tags: thetadev256/hello-world:latest platforms: linux/amd64,linux/arm64 context: hello-world file: hello-world/Dockerfile