Skip to content

Commit

Permalink
Merge pull request #10 from intergral/build
Browse files Browse the repository at this point in the history
feat(build): change builder size
  • Loading branch information
Umaaz committed Apr 26, 2024
2 parents 3c2e9a3 + 86ef5ea commit 59fd3c9
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 1 deletion.
53 changes: 53 additions & 0 deletions .github/workflows/docker_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: docker

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

permissions:
contents: write

jobs:
docker:
name: Docker
runs-on: 8CoreUbuntu
environment:
name: Docker Hub
url: https://hub.docker.com/r/intergral/grafana
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

# https://github.com/docker/setup-qemu-action
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: linux/amd64,linux/arm64
# https://github.com/docker/setup-buildx-action
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
with:
platforms: linux/amd64,linux/arm64

- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
build-args: |
BINGO=false
COMMIT_SHA=${{ github.sha }}
BUILD_BRANCH=main
push: true
tags: intergral/grafana:${{ github.event.pull_request.head.ref }}
2 changes: 1 addition & 1 deletion .github/workflows/on_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ permissions:
jobs:
release:
name: Release
runs-on: ubuntu-latest-m
runs-on: 8CoreUbuntu
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit 59fd3c9

Please sign in to comment.