Skip to content

chore: Replace drone pipelines with GHA workflows #4

chore: Replace drone pipelines with GHA workflows

chore: Replace drone pipelines with GHA workflows #4

Workflow file for this run

name: Build
permissions:
contents: read
id-token: write
on:
pull_request:
push:
branches:
- main
paths:
- go.mod
- go.sum
- '**/*.go'
- Dockerfile
- .github/workflows/build.yml
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
grafana/wait-for-github
tags: |
type=raw,value=latest
- id: secrets
uses: grafana/shared-workflows/actions/get-vault-secrets@main
with:
common_secrets: |
DOCKERHUB_USERNAME=dockerhub:username
DOCKERHUB_PASSWORD=dockerhub:password
- name: Login to container registry
uses: docker/login-action@v3
with:
username: "${{ env.DOCKERHUB_USERNAME }}"
password: "${{ env.DOCKERHUB_PASSWORD }}"
- name: Build Docker image
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}