Replace Build-And-Push.ps1 with a Forgejo Action #14

Open
opened 2026-06-12 10:27:11 +02:00 by MohandL3G · 0 comments
Owner

The Docker build-and-push workflow in Build-And-Push.ps1 can be replaced with a Forgejo Actions workflow that runs automatically on pushes to main.

What needs to happen:

  • Create .forgejo/workflows/deploy.yml with a docker-build-push workflow
  • Trigger: on push to main branch (or manual via workflow_dispatch)
  • Steps: Checkout → Set up Docker Buildx → Log in to Docker Hub (using Forgejo secrets) → Build and push mohandl3g/pc-achievements:latest
  • Add DOCKER_USERNAME and DOCKER_PASSWORD as secrets in the Forgejo repo settings

After this is done, we can delete:

  • Build-And-Push.ps1
  • Auto-Update-Deploy.ps1

Keep Run-Locally.ps1 and Update-Dependencies.ps1 as they are.

The Docker build-and-push workflow in `Build-And-Push.ps1` can be replaced with a Forgejo Actions workflow that runs automatically on pushes to `main`. **What needs to happen:** - [ ] Create `.forgejo/workflows/deploy.yml` with a `docker-build-push` workflow - [ ] Trigger: on `push` to `main` branch (or manual via `workflow_dispatch`) - [ ] Steps: Checkout → Set up Docker Buildx → Log in to Docker Hub (using Forgejo secrets) → Build and push `mohandl3g/pc-achievements:latest` - [ ] Add `DOCKER_USERNAME` and `DOCKER_PASSWORD` as secrets in the Forgejo repo settings **After this is done, we can delete:** - `Build-And-Push.ps1` - `Auto-Update-Deploy.ps1` Keep `Run-Locally.ps1` and `Update-Dependencies.ps1` as they are.
MohandL3G added reference main 2026-06-12 10:27:13 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MohandL3G/PC-Achievements#14
No description provided.