mirror of
https://codeberg.org/JasterV/docker.git
synced 2026-04-26 18:10:02 +00:00
feat: add flyctl image
This commit is contained in:
parent
c4f598ccc8
commit
f2c866c11a
2 changed files with 30 additions and 0 deletions
16
.woodpecker/publish-flyctl-image.yml
Normal file
16
.woodpecker/publish-flyctl-image.yml
Normal 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
14
flyctl/Dockerfile
Normal 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"
|
||||||
Loading…
Reference in a new issue