Skip to content

Commit

Permalink
Add automatic publish of docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
rmehner committed Apr 7, 2022
1 parent 6176fcc commit bcd03db
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/three-tables-mix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"bits-to-dead-trees": patch
---

Add automatic publish of docker images
30 changes: 30 additions & 0 deletions .github/workflows/build-docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build and Push Docker Image

on:
push:
tags:
- "v*"

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3

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

- name: Build and push builder image
uses: docker/build-push-action@v2
with:
file: Dockerfile
push: true
tags: |
ghcr.io/${{ github.repository }}:${{ github.ref_name }}

0 comments on commit bcd03db

Please sign in to comment.