Skip to content

Commit

Permalink
Add GHA workflow to push to ghcr.io
Browse files Browse the repository at this point in the history
  • Loading branch information
chen-anders committed Feb 3, 2024
1 parent a19a37e commit d383281
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/push-to-ghcr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build and Publish Docker Image

on: push

jobs:
docker_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

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

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

- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags: ghcr.io/wistia/udp-replicator:${{ github.sha }}

0 comments on commit d383281

Please sign in to comment.