Skip to content

Commit

Permalink
introduce GitHub Action to build container (#4)
Browse files Browse the repository at this point in the history
introduce gh action
  • Loading branch information
tillepille authored Dec 18, 2023
1 parent 4af235d commit 928bfa2
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build and Publish Docker

on:
push:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

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

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

- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: tillepille/diagrams:latest

0 comments on commit 928bfa2

Please sign in to comment.