Skip to content

Commit

Permalink
Add docker img CI
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel González Lopes <[email protected]>
  • Loading branch information
dgzlopes committed Sep 12, 2021
1 parent 71259a0 commit 4da6c65
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: "push"

on:
push:
branches: [ main ]

jobs:
build:
name: "Build"
runs-on: ubuntu-latest
steps:
- name: Check Out Repo
uses: actions/checkout@v2

- name: "Setup buildx"
uses: docker/setup-buildx-action@v1

- name: "Login into ghcr"
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: "Build image"
uses: docker/build-push-action@v2
with:
context: .
push: true
file: Dockerfile
tags: ghcr.io/grafana/github-traffic:latest,ghcr.io/grafana/github-traffic:${{ github.sha }}

0 comments on commit 4da6c65

Please sign in to comment.