Add build pipeline

This commit is contained in:
Joshua Coles 2023-09-29 10:37:07 +01:00
parent cf6e26b890
commit e244dd7c3f

33
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,33 @@
name: Build and Publish Docker Container
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to Docker
uses: docker/login-action@v1
with:
registry: git.joshuacoles.me
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and Push Docker image -- finn-board
uses: docker/build-push-action@675965c0e16f1a0f94ecafff969d8c966f92c17b
with:
context: .
push: true
tags: git.joshuacoles.me/joshuacoles/obsidian-note-finder:latest