Skip to content
This repository has been archived by the owner on Aug 3, 2024. It is now read-only.

refactor(build): adjustments to docker build process #20

Merged
merged 3 commits into from
Jul 29, 2020
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
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
**
!build/
!docker/
!dist/
5 changes: 2 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: cloudb0x/autoscan
dockerfile: build/Dockerfile
dockerfile: docker/Dockerfile
tags: latest
tag_with_ref: true
tag_with_sha: true
Expand All @@ -101,8 +101,7 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: cloudb0x/autoscan
dockerfile: build/Dockerfile
dockerfile: docker/Dockerfile
tags: master
tag_with_sha: true
always_pull: true

2 changes: 1 addition & 1 deletion build/Dockerfile → docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ENV \
COPY ["dist/build_linux_linux_amd64/autoscan", "/app/autoscan/autoscan"]

# Add root files
COPY ["build/root/", "/"]
COPY ["docker/run", "/etc/services.d/autoscan/run"]

# Volume
VOLUME ["/config"]
File renamed without changes.