devcontainer/.github/workflows/build.yml
Adam Štrauch 62bbf632d3
Some checks failed
Build and Push / build-and-push (push) Failing after 1m45s
Fix runon
2025-04-21 13:00:28 +02:00

30 lines
666 B
YAML

name: Build and Push
on:
push:
branches:
- main
jobs:
build-and-push:
runs-on: ["amd64", "dev"]
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