Skip to content

Commit

Permalink
refactor out fly.io registry from CI
Browse files Browse the repository at this point in the history
Signed-off-by: Xe Iaso <[email protected]>
  • Loading branch information
Xe committed Jan 21, 2025
1 parent 60b7103 commit c5b8f80
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/earthly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@ jobs:
registry: ghcr.io
username: xe
password: ${{ secrets.GHCR_PUSH }}
- uses: superfly/flyctl-actions/setup-flyctl@master
- name: Log into fly.io registry
run: |
flyctl auth docker
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
- name: Build and push Docker image
if: github.event_name != 'pull_request'
id: build-and-push
Expand Down
4 changes: 2 additions & 2 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ hdrwtch:

LABEL org.opencontainers.image.source="https://github.com/Xe/x"

SAVE IMAGE --push registry.fly.io/hdrwtch:latest
SAVE IMAGE --push ghcr.io/xe/x/hdrwtch:latest

hlang:
FROM +runtime
Expand Down Expand Up @@ -258,7 +258,7 @@ xedn:

LABEL org.opencontainers.image.source="https://github.com/Xe/x"

SAVE IMAGE --push registry.fly.io/xedn:latest
SAVE IMAGE --push ghcr.io/xe/x/xedn:latest

all:
BUILD --pass-args --platform=linux/amd64 +aerial
Expand Down
2 changes: 1 addition & 1 deletion cmd/hdrwtch/fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ primary_region = 'yul'
auto_extend_size_limit = "10GB"

[build]
image = "registry.fly.io/hdrwtch:latest"
image = "ghcr.io/xe/x/hdrwtch:latest"

[services.concurrency]
type = "connections"
Expand Down
2 changes: 1 addition & 1 deletion cmd/xedn/fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ swap_size_mb = 512
auto_rollback = true

[build]
image = "registry.fly.io/xedn:latest"
image = "ghcr.io/xe/x/xedn:latest"

[deploy]
strategy = "immediate"
Expand Down

0 comments on commit c5b8f80

Please sign in to comment.