Skip to content

Commit

Permalink
👷 Add Docker Publish
Browse files Browse the repository at this point in the history
  • Loading branch information
baylorhenshaw committed May 28, 2024
1 parent fffabf1 commit be1bc5c
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish Docker Image

on:
push:
branches:
- main

jobs:
build_and_publish:
runs-on: ubuntu-latest

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

- name: Login to GitHub Container Registry
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin

- name: Build Docker image
run: docker build -t ghcr.io/${{ github.repository }}:latest .

- name: Push Docker image
run: docker push ghcr.io/${{ github.repository }}:latest

0 comments on commit be1bc5c

Please sign in to comment.