Skip to content

Commit ed34f1e

Browse files
authored
ci: Docker Ignore (#93)
* ci: Docker Ignore * Add a whitelist `.dockerignore` which ignores everything except for the necessary files/directories for the docker build to work * Significantly reduces cache invalidation * Remove Docker Username and Password from Multi-Arch Build stage The Multi-Arch Build stage doesn't need the Docker Username/Password, so don't expose it.
1 parent 375a443 commit ed34f1e

2 files changed

Lines changed: 24 additions & 2 deletions

File tree

.dockerignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
## Recursively ignore everything
2+
**
3+
4+
## Except the following
5+
!driver/
6+
!driver-http/
7+
!openapi/
8+
!uni-registrar-client/
9+
!uni-registrar-core/
10+
!uni-registrar-local/
11+
!uni-registrar-web/
12+
!src/
13+
!LICENSE
14+
!pom.xml
15+
!README.md
16+
17+
## Explicitly ignore build artifacts and IDE files (based on .gitignore)
18+
**/target/
19+
**/bin/
20+
**/.settings/
21+
**/.classpath
22+
**/.project
23+
**/.idea/
24+
**/*.iml

.github/workflows/docker-multi-arch.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ jobs:
6363
token: ${{ secrets.CI_SECRET_READER_PERIODIC_TOKEN }}
6464
caCertificate: ${{ secrets.VAULTCA }}
6565
secrets: |
66-
ci/data/gh-workflows/${{ inputs.GLOBAL_REPO_NAME }} username | DOCKER_USERNAME ;
67-
ci/data/gh-workflows/${{ inputs.GLOBAL_REPO_NAME }} password | DOCKER_PASSWORD ;
6866
ci/data/gh-workflows/maven-danubetech-nexus username | MAVEN_USERNAME ;
6967
ci/data/gh-workflows/maven-danubetech-nexus password | MAVEN_PASSWORD
7068

0 commit comments

Comments
 (0)