mirror of
https://github.com/replicatedhq/ttl.sh.git
synced 2026-02-14 16:59:51 +00:00
Merge pull request #173 from replicatedhq/ci/enable-real-deploys
Enable real deploys
This commit is contained in:
14
.github/workflows/deploy.yml
vendored
14
.github/workflows/deploy.yml
vendored
@@ -1,9 +1,10 @@
|
||||
name: Deploy ttl.sh (DRY RUN)
|
||||
name: Deploy ttl.sh
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- prerelease # Temporary: deploy on prerelease for testing
|
||||
# - main # TODO: Switch back to main after testing
|
||||
workflow_dispatch: # Manual trigger for emergencies
|
||||
|
||||
concurrency:
|
||||
@@ -34,10 +35,10 @@ jobs:
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Build images (dry run - no push)
|
||||
- name: Build and push images
|
||||
run: |
|
||||
docker compose build
|
||||
echo "✅ Build succeeded - skipping push (dry run mode)"
|
||||
docker compose push
|
||||
env:
|
||||
DOPPLER_TOKEN: ${{ secrets.DOPPLER_TOKEN }}
|
||||
|
||||
@@ -65,13 +66,12 @@ jobs:
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
ssh-keyscan -H 178.156.198.215 >> ~/.ssh/known_hosts
|
||||
|
||||
- name: Run Ansible deployment (dry run)
|
||||
- name: Run Ansible deployment
|
||||
working-directory: ./ansible
|
||||
env:
|
||||
DOPPLER_TOKEN: ${{ secrets.DOPPLER_TOKEN }}
|
||||
run: |
|
||||
echo "🔍 Running Ansible in check mode (dry run - no changes will be made)"
|
||||
ansible-playbook --check \
|
||||
ansible-playbook \
|
||||
-e "cloudflare_api_token=$(doppler secrets get CF_API_TOKEN --plain)" \
|
||||
-e "cloudflare_zone_id=$(doppler secrets get CF_ZONE_ID --plain)" \
|
||||
-e "cloudflare_email=$(doppler secrets get LE_EMAIL --plain)" \
|
||||
|
||||
Reference in New Issue
Block a user