Skip to content

Commit 401cd9f

Browse files
author
vsilent
committed
use image, list dist, typo fix
1 parent d8c80b0 commit 401cd9f

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

.github/workflows/docker.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ jobs:
6565
working-directory: ./web
6666
run: docker run --rm -v $GITHUB_WORKSPACE/dist:/stackgog/dist web sh -c "npm run build"
6767

68+
- name: Display structure of dist
69+
run: ls -R $GITHUB_WORKSPACE/dist
6870
# - name: npm install
6971
# working-directory: ./web
7072
# run: npm install
@@ -101,6 +103,9 @@ jobs:
101103
tar -czvf ../app.tar.gz .
102104
cd ..
103105
106+
- name: Display structure of dist
107+
run: ls -R app/stackdog/dist
108+
104109
- name: Upload app archive for Docker job
105110
uses: actions/upload-artifact@v2.2.2
106111
with:
@@ -123,6 +128,9 @@ jobs:
123128
- name: Display structure of downloaded files
124129
run: ls -R
125130

131+
- name: Display structure of dist
132+
run: ls -R dist
133+
126134
- name: Docker build and publish
127135
uses: docker/build-push-action@v1
128136
with:

docker-compose.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ version: '3'
33
services:
44
stackdog:
55
container_name: backend
6-
build:
7-
context: .
8-
dockerfile: docker/local/Dockerfile
9-
# entrypoint: [ 'bash', '-c', 'sleep infinity' ]
6+
image: trydirect/stackdog:latest
7+
# build:
8+
# context: .
9+
# dockerfile: docker/local/Dockerfile
10+
entrypoint: [ 'bash', '-c', 'sleep infinity' ]
1011
# restart: always
1112
ports:
1213
- "5000:5000"
13-
env_file: .env
14+
env_file: .env

0 commit comments

Comments
 (0)