GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — app-summoners-sync/.github/workflows/deploy-infra.yml at develop · zerodaycode/app-summoners-sync 72 lines (63 loc) · 2.27 KB / Copy pathdeploy-infra.ymlFile metadata and controls72 lines (63 loc) · 2.27 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 name: Deploy Infrastructure artifact on: workflow_call: inputs: artifact: required: true type: string environment: required: true type: string jobs: deploy_infra_artifact: name: Deploy Infrastructure Artifact runs-on: ubuntu-latest steps: - name: Validate Artifact id: validate-artifact run: | case "${{ inputs.artifact }}" in postgres|redis) echo "Valid artifact: ${{ inputs.artifact }}" ;; *) echo "Unknown infra: ${{ inputs.artifact }}" exit 1 ;; esac - name: Build compose filename id: build-compose-filename run: | echo "Artifact: ${{ inputs.artifact }}" echo "Environment: ${{ inputs.environment }}" filename="${{ inputs.artifact }}-compose-${{ inputs.environment }}.yml" echo "Generated filename: $filename" echo "COMPOSE_FILENAME=$filename" >> $GITHUB_ENV - name: Deploy Specific Infrastructure id: generate-secret-name run: | INFRA_UPPER=$(echo "${{ inputs.artifact }}" | tr 'a-z' 'A-Z') ENV_UPPER=$(echo "${{ inputs.environment }}" | tr 'a-z' 'A-Z') secret_name="SS_${INFRA_UPPER}_${ENV_UPPER}" echo "Generated secret_name: $secret_name" echo "SECRET_NAME=$secret_name" >> $GITHUB_OUTPUT - name: Checkout Code uses: actions/checkout@v4 - name: Transfer Compose File to Server uses: appleboy/[email protected] with: host: ${{ secrets.DO_SSH_HOST_PRE }} username: ${{ secrets.DO_SSH_USER_PRE }} key: ${{ secrets.DO_SSH_KEY_PRE }} source: "infra/docker/${{ env.COMPOSE_FILENAME }}" target: /opt/summoners-sync/ rm: true - name: Run docker with env uses: appleboy/[email protected] with: host: ${{ secrets.DO_SSH_HOST_PRE }} username: ${{ secrets.DO_SSH_USER_PRE }} key: ${{ secrets.DO_SSH_KEY_PRE }} script: | cd /opt/summoners-sync/infra/docker echo "${{secrets[steps.generate-secret.outputs.SECRET_NAME] }}" > .env ls -l docker-compose --env-file .env -f ${{ env.COMPOSE_FILENAME }} up -d |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |