Skip to content

Commit

Permalink
remove kamal remote builder in favor of GHA cache
Browse files Browse the repository at this point in the history
  • Loading branch information
juan-apa committed Feb 2, 2024
1 parent 4ca48fb commit 9a7b183
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Deploy to production

env:
RAILS_ENV: production
DOCKER_REMOTE_BUILDER_IP: ${{ secrets.DOCKER_REMOTE_BUILDER_IP }}
DOCKER_REMOTE_BUILDER_PRIVATE_KEY: ${{ secrets.DOCKER_REMOTE_BUILDER_PRIVATE_KEY }}
SSH_PRODUCTION_PRIVATE_KEY: ${{ secrets.SSH_PRODUCTION_PRIVATE_KEY }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand All @@ -27,7 +25,6 @@ jobs:
with:
ssh-private-key: |
${{ env.SSH_PRODUCTION_PRIVATE_KEY }}
${{ env.DOCKER_REMOTE_BUILDER_PRIVATE_KEY }}
- name: Install docker buildx
uses: docker/setup-buildx-action@v2
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Deploy to staging

env:
RAILS_ENV: staging
DOCKER_REMOTE_BUILDER_IP: ${{ secrets.DOCKER_REMOTE_BUILDER_IP }}
DOCKER_REMOTE_BUILDER_PRIVATE_KEY: ${{ secrets.DOCKER_REMOTE_BUILDER_PRIVATE_KEY }}
SSH_STAGING_PRIVATE_KEY: ${{ secrets.SSH_STAGING_PRIVATE_KEY }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand All @@ -27,7 +25,6 @@ jobs:
with:
ssh-private-key: |
${{ env.SSH_STAGING_PRIVATE_KEY }}
${{ env.DOCKER_REMOTE_BUILDER_PRIVATE_KEY }}
- name: Install docker buildx
uses: docker/setup-buildx-action@v2
Expand Down
6 changes: 5 additions & 1 deletion config/deploy.staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ builder:
args:
RUBY_VERSION: 3.2.2
RAILS_ENV: staging
multiarch: true
multiarch: false
local:
arch: amd64
cache:
type: gha
# remote:
# arch: amd64
# host: ssh://[email protected]
Expand Down
6 changes: 5 additions & 1 deletion config/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ builder:
args:
RUBY_VERSION: 3.2.2
RAILS_ENV: production
multiarch: true
multiarch: false
local:
arch: amd64
cache:
type: gha
# remote:
# arch: amd64
# host: ssh://[email protected]
Expand Down

0 comments on commit 9a7b183

Please sign in to comment.