This commit is contained in:
@@ -9,11 +9,16 @@ jobs:
|
|||||||
deploy:
|
deploy:
|
||||||
runs-on: [docker, host]
|
runs-on: [docker, host]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Prepare workspace
|
||||||
uses: actions/checkout@v3
|
run: |
|
||||||
|
rm -rf /tmp/olaper
|
||||||
|
mkdir -p /tmp/olaper
|
||||||
|
cd /tmp/olaper
|
||||||
|
git clone --branch prod ssh://git@10.25.100.250:2222/serty/olaper.git .
|
||||||
|
|
||||||
- name: Build Docker image
|
- name: Build Docker image
|
||||||
run: |
|
run: |
|
||||||
|
cd /tmp/olaper
|
||||||
docker build -t olaper:latest .
|
docker build -t olaper:latest .
|
||||||
|
|
||||||
- name: Stop old container (if running)
|
- name: Stop old container (if running)
|
||||||
@@ -31,3 +36,6 @@ jobs:
|
|||||||
-e SECRET_KEY=${{ secrets.SECRET_KEY }} \
|
-e SECRET_KEY=${{ secrets.SECRET_KEY }} \
|
||||||
-e ENCRYPTION_KEY=${{ secrets.ENCRYPTION_KEY }} \
|
-e ENCRYPTION_KEY=${{ secrets.ENCRYPTION_KEY }} \
|
||||||
olaper:latest
|
olaper:latest
|
||||||
|
|
||||||
|
- name: Cleanup
|
||||||
|
run: rm -rf /tmp/olaper
|
||||||
|
|||||||
Reference in New Issue
Block a user