Skip to content

Add readme and license #1 #2

Add readme and license #1

Add readme and license #1 #2

Workflow file for this run

name: Build and deploy to ghcr
on:
push:
branches: [ main ]
env:
REGISTRY: ghcr.io
REPO_OWNER: ${{ github.repository_owner }}
jobs:
build:
name: Build image
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Log in to Github Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GH_TOKEN }}
- name: Extract image metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.REPO_OWNER }}/planny
- name: Setup Go
uses: actions/setup-go@v5
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
secrets: |
GITHUB_TOKEN=${{ secrets.GH_TOKEN }}