Skip to content

Commit

Permalink
ci: Create docker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
NGPixel authored Jul 2, 2024
1 parent cfbad16 commit ce62422
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build Docker Image

on:
push:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker Build & Push
uses: docker/build-push-action@v6
env:
DOCKER_BUILD_NO_SUMMARY: true
with:
context: .
file: Dockerfile
platforms: linux/amd64
push: true
sbom: false
tags: ghcr.io/ietf-tools/grafana:latest

0 comments on commit ce62422

Please sign in to comment.