feat: add flyctl image

This commit is contained in:
JasterV 2026-03-08 20:01:34 +01:00
parent c4f598ccc8
commit f2c866c11a
2 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,16 @@
when:
event: [push, manual]
branch: main
path: ["flyctl/Dockerfile"]
steps:
build-latest-container:
image: woodpeckerci/plugin-docker-buildx:6.0.3
settings:
registry: codeberg.org
username: ${CI_REPO_OWNER}
password:
from_secret: CONTAINER_REGISTRY_TOKEN
repo: codeberg.org/jasterv/flyctl
dockerfile: "flyctl/Dockerfile"
tags: latest

14
flyctl/Dockerfile Normal file
View file

@ -0,0 +1,14 @@
# Use Alpine for the smallest footprint
FROM public.ecr.aws/docker/library/alpine:latest
# Install dependencies for flyctl and general plugin usage
# ca-certificates is required for HTTPS requests to the Fly.io API
RUN apk add --no-cache ca-certificates curl bash
# Install flyctl
# This uses the official install script which detects architecture automatically
RUN curl -L https://fly.io/install.sh | sh
# 3. Add flyctl to the PATH
ENV FLYCTL_INSTALL="/root/.fly"
ENV PATH="$FLYCTL_INSTALL/bin:$PATH"