Skip to content

Add Github workflow to auto-build and push updated container to GHCR. #1

Add Github workflow to auto-build and push updated container to GHCR.

Add Github workflow to auto-build and push updated container to GHCR. #1

Workflow file for this run

name: Docker Image CI for GHCR
on:
push
jobs:
build_and_publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build and push the image
run: |
docker login --username onerdy --password ${{ secrets.GHCR_PERSONAL_ACCESS_TOKEN }} ghcr.io
docker build . --tag ghcr.io/onerdy/passgen:latest
docker push ghcr.io/onerdy/passgen:latest