Build #207
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
permissions: | |
contents: read | |
id-token: write | |
on: | |
pull_request: | |
types: | |
- edited | |
- opened | |
- ready_for_review | |
- synchronize | |
push: | |
branches: | |
- main | |
paths: | |
- go.mod | |
- go.sum | |
- "**/*.go" | |
- Dockerfile | |
- .github/workflows/build.yml | |
merge_group: | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Set Docker Buildx up | |
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1 | |
- name: Build Docker image | |
uses: grafana/shared-workflows/actions/build-push-to-dockerhub@main | |
with: | |
platforms: linux/amd64,linux/arm64 | |
push: ${{ github.event_name == 'push' }} | |
tags: | | |
# tag with branch name for `main` | |
type=ref,event=branch,enable={{is_default_branch}} | |
# tag with semver, and `latest` | |
type=ref,event=tag | |
repository: grafana/wait-for-github |