Skip to content

Commit

Permalink
Log values (temporary)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeto143 committed Mar 1, 2024
1 parent 8cab894 commit c0fdfaa
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
DEPLOY_HOST: 206.189.96.198
DEPLOY_USER: deploy

jobs:
deploy:
Expand Down Expand Up @@ -42,3 +44,37 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: Log stuff (temporary)
run: |
echo "${{ env.REGISTRY }}"
echo "${{ env.IMAGE_NAME }}"
echo "${{ steps.meta.outputs.tags }}"
echo "${{ steps.meta.outputs.labels }}"
#
# - name: Deploy Metabase to docker droplet
# run: >
# eval `ssh-agent -s` &&
# ssh-add - <<< "${{ secrets.DEPLOY_PRIVATE_KEY }}" &&
# ssh -o StrictHostKeyChecking=no ${DEPLOY_USER}@${DEPLOY_HOST} -C
# "
# docker pull ${{ env.REGISTRY }}/${{ steps.meta.outputs.tags }} &&
# (docker stop ${SERVICE_NAME} && docker rm ${SERVICE_NAME} || true) &&
# docker run -d \
# -v \${HOME}/${SERVICE_NAME}:/metabase-data \
# -e 'MB_DB_FILE=/metabase-data/metabase.db' \
# --restart always \
# --label traefik.enable=true \
# --label traefik.http.middlewares.https-redirect.redirectscheme.scheme=https \
# --label traefik.http.middlewares.https-redirect.redirectscheme.permanent=true \
# --label traefik.http.routers.metabase-http.middlewares=https-redirect \
# --label traefik.http.routers.metabase-http.rule=Host\(\\\`metabase.veganhacktivists.org\\\`\) \
# --label traefik.http.routers.metabase-http.entrypoints=http \
# --label traefik.http.routers.metabase-https.rule=Host\(\\\`metabase.veganhacktivists.org\\\`\) \
# --label traefik.http.routers.metabase-https.tls.certresolver=le \
# --label traefik.http.routers.metabase-https.tls=true \
# --label traefik.http.routers.metabase-https.entrypoints=https \
# --network=traefik-public \
# --name ${SERVICE_NAME} \
# metabase/metabase:${METABASE_TAG}
# "

0 comments on commit c0fdfaa

Please sign in to comment.