devcontainer/.github/workflows/build.yml
Adam Štrauch bf89632e26
Some checks failed
Build and Push / build-and-push (push) Has been cancelled
Workflow
2025-04-21 12:58:06 +02:00

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