Some checks failed
Build and Push / build-and-push (push) Has been cancelled
30 lines
663 B
YAML
30 lines
663 B
YAML
name: Build and Push
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build-and-push:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
# Step 1: Checkout the repository
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
|
|
# Step 2: Log in to Forgejo's registry
|
|
- name: Log in to local registry
|
|
env:
|
|
INSTANCE: gitea.ceperka.net
|
|
USERNAME: cx
|
|
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login $INSTANCE -u "cx" --password-stdin
|
|
|
|
# Step 3: Build the project
|
|
- name: Build the project
|
|
run: task build
|
|
|
|
# Step 4: Push the build
|
|
- name: Push the build
|
|
run: task push
|