Skip to content

Commit

Permalink
Added publish.yaml
Browse files Browse the repository at this point in the history
This workflow intends to automate the process of building and publishing docker images to ghcr
  • Loading branch information
sandramsc authored Mar 3, 2024
1 parent ec443de commit d11c641
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: publish

#on: [push]

jobs:
publish-leap24-image:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

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

- name: Build the LEAP24 Docker image
run: |
docker build . --tag ghcr.io/sandramsc/leap-hackathon:latest
docker push ghcr.io/sandramsc/leap-hackathon:latest

0 comments on commit d11c641

Please sign in to comment.