-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
16 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,20 +29,20 @@ jobs: | |
name: Pull and Run Docker Container | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
# - name: Checkout Repository | ||
# uses: actions/checkout@v2 | ||
|
||
- name: Add Env File | ||
run: ${{ secrets.env_vars }} > client/env/.env.${{ inputs.node_env }} | ||
# - name: Add Env File | ||
# run: ${{ secrets.env_vars }} > client/env/.env.${{ inputs.node_env }} | ||
|
||
- name: Copy Required Files | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{ inputs.ssh_host }} | ||
username: ${{ inputs.ssh_username }} | ||
key: ${{ secrets.ssh_private_key }} | ||
source: "docker-compose.yml,client/env/.env.${{ inputs.node_env }}" | ||
target: "~/apps/project-tahiti" | ||
# - name: Copy Required Files | ||
# uses: appleboy/[email protected] | ||
# with: | ||
# host: ${{ inputs.ssh_host }} | ||
# username: ${{ inputs.ssh_username }} | ||
# key: ${{ secrets.ssh_private_key }} | ||
# source: "docker-compose.yml,client/env/.env.${{ inputs.node_env }}" | ||
# target: "~/apps/project-tahiti" | ||
|
||
- name: Run SSH Commands | ||
uses: appleboy/[email protected] | ||
|
@@ -52,5 +52,7 @@ jobs: | |
key: ${{ secrets.ssh_private_key }} | ||
script: | | ||
cd ~/apps/project-tahiti | ||
docker pull ${{ inputs.registry }}/${{ inputs.image_name }}:${{ inputs.node_env }} | ||
docker-compose up | ||
docker pull ghcr.io/monday-morning/project-tahiti:production | ||
docker-compose down | ||
docker-compose up -d | ||
docker image prune -a -f |