ci: build and push images to GHCR, drop the Gitea workflow
Mirrors the existing Gitea deploy workflow's gate (fmt/vet/build/test,
dashboard tests, tag<->changelog check) but publishes to
ghcr.io/samcharles93/{archied,archie-agent} using the built-in
GITHUB_TOKEN. Additive: docker-compose.yml and the carina watchtower
setup are untouched, so production still runs off the Gitea-built
images until that's explicitly cut over.
.gitea/workflows/deploy.yml is removed from this checkout now that the
Gitea remote is gone; the git.catlow.cloud-hosted copy is unaffected
until that repo is pushed to again.
This commit is contained in:
1 parent
5d8a7a1bd0
commit
dd9bddc245
1 file changed
+13
-10
@@ -1,7 +1,6 @@
|
|||||||
# Builds and pushes the archied and archie-agent images on every merge
|
# Builds and pushes the archied and archie-agent images to GHCR on every
|
||||||
# to main. carina's watchtower container (see docker-compose.yml) picks
|
# merge to main. Mirrors .gitea/workflows/deploy.yml, which remains the
|
||||||
# up the new images and restarts the running daemons -- this workflow
|
# production build path against git.catlow.cloud until that's cut over.
|
||||||
# never touches carina directly.
|
|
||||||
name: deploy
|
name: deploy
|
||||||
|
|
||||||
on:
|
on:
|
||||||
@@ -9,6 +8,10 @@ on:
|
|||||||
branches: [main]
|
branches: [main]
|
||||||
tags: ["archied/v*", "archie/v*"]
|
tags: ["archied/v*", "archie/v*"]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
gate:
|
gate:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -87,8 +90,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Log in to registry
|
- name: Log in to GHCR
|
||||||
run: echo "${{ secrets.DEPLOY_TOKEN }}" | docker login git.catlow.cloud -u sam --password-stdin
|
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u "${{ github.actor }}" --password-stdin
|
||||||
|
|
||||||
- name: Build and push archied
|
- name: Build and push archied
|
||||||
run: |
|
run: |
|
||||||
@@ -101,13 +104,13 @@ jobs:
|
|||||||
docker build \
|
docker build \
|
||||||
--build-arg GATEWAY_VERSION="$GATEWAY_VERSION" \
|
--build-arg GATEWAY_VERSION="$GATEWAY_VERSION" \
|
||||||
--build-arg RUNTIME_VERSION="$RUNTIME_VERSION" \
|
--build-arg RUNTIME_VERSION="$RUNTIME_VERSION" \
|
||||||
-f Dockerfile.archied -t git.catlow.cloud/sam/archied:latest .
|
-f Dockerfile.archied -t ghcr.io/samcharles93/archied:latest .
|
||||||
docker push git.catlow.cloud/sam/archied:latest
|
docker push ghcr.io/samcharles93/archied:latest
|
||||||
|
|
||||||
- name: Build and push archie-agent
|
- name: Build and push archie-agent
|
||||||
run: |
|
run: |
|
||||||
RUNTIME_TAG="$(git tag --points-at HEAD --list 'archie/v*' | sort -V | tail -1)"
|
RUNTIME_TAG="$(git tag --points-at HEAD --list 'archie/v*' | sort -V | tail -1)"
|
||||||
RUNTIME_VERSION="${RUNTIME_TAG#archie/}"
|
RUNTIME_VERSION="${RUNTIME_TAG#archie/}"
|
||||||
[ -n "$RUNTIME_VERSION" ] || RUNTIME_VERSION=dev
|
[ -n "$RUNTIME_VERSION" ] || RUNTIME_VERSION=dev
|
||||||
docker build --build-arg RUNTIME_VERSION="$RUNTIME_VERSION" -f Dockerfile -t git.catlow.cloud/sam/archie-agent:latest .
|
docker build --build-arg RUNTIME_VERSION="$RUNTIME_VERSION" -f Dockerfile -t ghcr.io/samcharles93/archie-agent:latest .
|
||||||
docker push git.catlow.cloud/sam/archie-agent:latest
|
docker push ghcr.io/samcharles93/archie-agent:latest
|
||||||
Reference in new issue
Block a user