Commit Graph
14 Commits
Author SHA1 Message Date
dependabot[bot] 3045445da2 Bump docker/setup-buildx-action from 3 to 4
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 3 to 4.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-30 20:45:01 +00:00
Josh Sandlin b4b429438f set for prod flow 2026-07-30 14:33:00 -04:00
Josh Sandlin 5bf2f4cd52 paste in sidecar code / build and account for ansible tweaks to settle it in 2026-07-28 15:54:34 -04:00
Josh Sandlin ad0f5e0a4e further adjustments to use latitude more gracefully 2026-07-28 15:33:11 -04:00
Josh Sandlin 74cde5ed9e deleting a whole bunch of no-longer needed resources here 2026-07-28 14:46:01 -04:00
Marc Campbell 9aae843dcb Remove TTL expiry verification from smoke test
Reaper runs on interval, so TTL expiry timing is non-deterministic.
Keep just the push/pull validation for now.

Signed-off-by: Marc Campbell <marc.e.campbell@gmail.com>
2026-02-03 12:24:03 +00:00
Marc Campbell d32aa3f76e Add smoke test: push/pull + TTL expiry verification
After deploy, tests:
1. Push busybox with 5m TTL (uses commit SHA for unique name)
2. Pull back to verify registry works
3. Wait 7 minutes for TTL to expire
4. Verify pull fails (image correctly deleted)

Signed-off-by: Marc Campbell <marc.e.campbell@gmail.com>
2026-02-03 12:04:28 +00:00
Marc Campbell 41695d4a30 Remove unnecessary GHCR token (packages are public)
Signed-off-by: Marc Campbell <marc.e.campbell@gmail.com>
2026-02-03 12:02:47 +00:00
Marc Campbell b537597c95 Switch from GAR to GHCR for container images
- Update docker-compose.yaml to use ghcr.io/replicatedhq/ttlsh-* images
- Simplify CI auth using GITHUB_TOKEN (no GCP credentials needed)
- Update ansible to use docker login for GHCR instead of gcloud
- Remove google.cloud ansible collection (no longer needed for registry)

GHCR is simpler: automatic auth via GITHUB_TOKEN in Actions,
and packages can be made public for pull access on servers.

Signed-off-by: Marc Campbell <marc.e.campbell@gmail.com>
2026-02-03 11:55:06 +00:00
Marc Campbell 4ba01e35fc Fix CI: create empty .env file for docker-compose build
docker-compose.yaml references env_file: .env which is created by
Ansible on the server but doesn't exist in the repo. Create an empty
file during CI build to satisfy the reference.

Signed-off-by: Marc Campbell <marc.e.campbell@gmail.com>
2026-02-03 11:45:31 +00:00
Marc Campbell fa9959bff1 Target prerelease branch for deployment testing
Temporarily deploy on merge to prerelease branch instead of main.
This allows testing the deploy workflow without requiring PR approval.

TODO: Switch back to main after testing is complete.
Signed-off-by: Marc Campbell <marc.e.campbell@gmail.com>
2026-02-03 11:02:50 +00:00
Marc Campbell d15a431aab Enable real deploys
- Remove dry run flags
- Build and push images to Artifact Registry
- Run Ansible without --check flag

Deploys will now happen automatically on merge to main.

Signed-off-by: Marc Campbell <marc.e.campbell@gmail.com>
2026-02-03 00:20:42 +00:00
Marc Campbell 233df3c8cb Make workflow dry run only for testing
- Build images but skip push
- Run Ansible with --check flag (no changes made)
- Renamed workflow to indicate dry run mode

This lets us verify credentials and workflow before enabling real deploys.

Signed-off-by: Marc Campbell <marc.e.campbell@gmail.com>
2026-02-02 20:43:42 +00:00
Marc Campbell 48ea9b9f2d Add GitHub Actions workflow for automated deployment
- Triggers on merge to main
- Uses Doppler for secrets management
- Builds and pushes Docker images to GCP Artifact Registry
- Runs Ansible playbook to deploy to production

Required GitHub secrets:
- DOPPLER_TOKEN: Service token for Doppler ttl-sh project
- SSH_PRIVATE_KEY: Private key for SSH access to production server

Signed-off-by: Marc Campbell <marc.e.campbell@gmail.com>
2026-02-02 20:31:20 +00:00