这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions tests/apps/dockerfile/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ COPY . /var/www/html
WORKDIR /var/www/html
RUN npm install

ARG GITHUB_TOKEN=latest
RUN echo "TOKEN is: $GITHUB_TOKEN"

CMD npm start
10 changes: 10 additions & 0 deletions tests/unit/docker-options.bats
Original file line number Diff line number Diff line change
Expand Up @@ -360,3 +360,13 @@ teardown() {
echo "status: $status"
assert_success
}

@test "(docker-options) build arguments" {
run /bin/bash -c "dokku docker-options:add $TEST_APP build '--build-arg GITHUB_TOKEN=\"hello\"'"

run deploy_app dockerfile
echo "output: $output"
echo "status: $status"
assert_success
assert_output_contains "TOKEN is: hello"
}