Skip to content

Commit 5158e54

Browse files
committed
Update test
1 parent 826028e commit 5158e54

File tree

4 files changed

+10
-33
lines changed

4 files changed

+10
-33
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ jobs:
4545
script: |
4646
return {
4747
inspect_image: [
48-
'test_project_node',
48+
'test_project_scratch',
4949
'hello-world',
5050
],
5151
include: [
5252
{
53-
inspect_image: 'test_project_node',
53+
inspect_image: 'test_project_scratch',
5454
prepare_command: 'docker-compose -f test_project/docker-compose.yml -p test_project pull',
5555
build_command: 'docker-compose -f test_project/docker-compose.yml -p test_project build',
5656
}, {

src/LayerCache.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,7 @@ class LayerCache {
2626
}
2727

2828
async exec(command: string, args?: string[], options?: ExecOptions) {
29-
const argsStr = args != null ? args.join(' ') : ''
30-
core.startGroup(`${command} ${argsStr}`)
3129
const result = await exec.exec(command, args, options)
32-
core.endGroup()
3330

3431
return result
3532
}

test_project/Dockerfile

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,5 @@
1-
FROM node:12-alpine as curl-env
2-
RUN set -x \
3-
apk update && \
4-
apk add curl && \
5-
mkdir -p /src && \
6-
curl -o /src/install.sh -L https://yarnpkg.com/install.sh && \
7-
chmod +x /src/install.sh && \
8-
apk del curl
1+
FROM alpine AS data
2+
RUN date > /now.txt
93

10-
FROM node:12-alpine
11-
12-
COPY --from=curl-env /src/install.sh /tmp/install.sh
13-
RUN set -x \
14-
apk update && \
15-
apk add curl && \
16-
/tmp/install.sh && \
17-
apk del curl
18-
19-
WORKDIR /app
20-
COPY package.json yarn.lock ./
21-
RUN yarn install --frozen-lockfile
22-
23-
# COPY . ./
4+
FROM scratch
5+
COPY --from=data /now.txt /data_stage_built_at.txt

test_project/docker-compose.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
version: '3'
22

33
services:
4-
node:
5-
build:
6-
context: ../
7-
dockerfile: ./test_project/Dockerfile
8-
mysql_pull_only:
9-
image: mysql:8.0
4+
scratch:
5+
build: '.'
6+
hello_world:
7+
image: hello-world

0 commit comments

Comments
 (0)