Skip to content

Commit

Permalink
ci: add Docker build and push workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanaturner committed Mar 3, 2023
1 parent 3a6fb08 commit 1807e62
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build and push Docker image

on:
release:
types:
- created

jobs:
build-and-push-image:
name: Build and push image
runs-on: ubuntu-latest
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ${{ github.repository }} ":"" ${{ github.ref }}

0 comments on commit 1807e62

Please sign in to comment.