mirror of
https://github.com/gabrielkheisa/gemini-resume-checker.git
synced 2025-02-22 17:04:12 +07:00
38 lines
947 B
YAML
38 lines
947 B
YAML
name: Build and Push Docker Image
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main # Runs when pushing to main branch
|
|
workflow_dispatch: # Allows manual triggering
|
|
|
|
permissions:
|
|
contents: read
|
|
packages: write # Needed to push to GHCR
|
|
|
|
jobs:
|
|
build-and-push:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Log in to GitHub Container Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Build Docker Image
|
|
run: |
|
|
docker build -t ghcr.io/${{ github.repository_owner }}/resume-summarizer:latest .
|
|
|
|
- name: Push Docker Image to GHCR
|
|
run: |
|
|
docker push ghcr.io/${{ github.repository_owner }}/resume-summarizer:latest
|