mirror of
https://github.com/StefBuwalda/cal_counter.git
synced 2025-10-30 03:10:00 +00:00
30 lines
675 B
YAML
30 lines
675 B
YAML
name: Build and Push to GHCR
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4.2.2
|
|
|
|
- name: Log in to GitHub Container Registry
|
|
uses: docker/login-action@v3.5.0
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Build Docker image
|
|
run: |
|
|
docker build -t ghcr.io/${{ github.repository_owner }}/cal_counter:latest .
|
|
|
|
- name: Push Docker image
|
|
run: |
|
|
docker push ghcr.io/${{ github.repository_owner }}/cal_counter:latest
|