Skip to content

Commit

Permalink
Add workflow to build package Docker on GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
arielleleon committed Sep 30, 2024
1 parent c017892 commit 457414f
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/docker_pub.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Publish Docker image

on:
push:
branches: [ add-docker ]

jobs:
push_to_registry:
name: Push Docker image to GitHub Packages
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2

- name: Log in to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io

- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ghcr.io/${{ github.repository }}:latest

0 comments on commit 457414f

Please sign in to comment.