Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
hschne committed Oct 14, 2024
1 parent 228e6d1 commit 50c7ee8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 46 deletions.
24 changes: 1 addition & 23 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,31 +41,9 @@ jobs:
username: hschne
password: ${{ secrets.DOCKER_REGISTRY_KEY }}

- name: Set Tag
id: tag
run: |
if [ "$GITHUB_EVENT_NAME" == "pull_request" ]; then
GITHUB_SHA=${{ github.event.pull_request.head.sha }}
fi
echo "tag=$(git rev-parse "$GITHUB_SHA")" >> $GITHUB_OUTPUT
- name: Build Image
uses: docker/build-push-action@v5
with:
context: .
builder: ${{ steps.buildx.outputs.name }}
push: true
labels: |
"service=data-dead-drop"
tags: |
"hschne/data-dead-drop:latest"
"hschne/data-dead-drop:${{ steps.tag.outputs.tag }}"
cache-from: type=gha
cache-to: type=gha,mode=max

- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

- name: Deploy command
run: bundle exec kamal deploy --skip-push
run: bundle exec dotenv kamal deploy
31 changes: 8 additions & 23 deletions config/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,26 +59,11 @@ env:
# limit: 10 # Can also specify as a percentage of total hosts, such as "25%"
# wait: 2

# Use accessory services (secrets come from .kamal/secrets).
#
# accessories:
# db:
# image: mysql:8.0
# host: 192.168.0.2
# port: 3306
# env:
# clear:
# MYSQL_ROOT_HOST: '%'
# secret:
# - MYSQL_ROOT_PASSWORD
# files:
# - config/mysql/production.cnf:/etc/mysql/my.cnf
# - db/production.sql:/docker-entrypoint-initdb.d/setup.sql
# directories:
# - data:/var/lib/mysql
# redis:
# image: redis:7.0
# host: 192.168.0.2
# port: 6379
# directories:
# - data:/data
accessories:
monitoring:
image: hschne/puny-monitor:latest
host: 159.69.18.121
port: 4567
directories:
- /:/host:ro,rslave
- puny-data:/puny-monitor/db

0 comments on commit 50c7ee8

Please sign in to comment.