Skip to content

Commit 6676377

Browse files
committed
add pipeline to build docker image
1 parent b80713b commit 6676377

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.buildkite/build.pipeline.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
steps:
2+
- label: "Build & Push Staging Docker Image"
3+
commands:
4+
- echo $$REGISTRY_PASSWORD | docker login adabay.azurecr.io --username $$REGISTRY_USERNAME --password-stdin
5+
- docker run --rm -v "$$PWD":/usr/src/app -w /usr/src/app ruby:3.2.2 bash -c "bundle config set --local path '/usr/src/app/vendor' && bundle install"
6+
- docker run --rm -v "$$PWD":/usr/src/app -w /usr/src/app ruby:3.2.2 bash -c "bundle config set --local path '/usr/src/app/vendor' && bundle exec jekyll build"
7+
- docker build --pull --progress plain -f Staging.Dockerfile -t adabay.azurecr.io/fz-juelich/website/parallel-in-time:latest .
8+
- docker push adabay.azurecr.io/fz-juelich/website/parallel-in-time:latest
9+
- docker logout adabay.azurecr.io
10+
plugins:
11+
- adabay/vault-key-value#v0.9.5:
12+
secrets:
13+
- secret_path: "static/ci/username-password-combinations/adabay.azurecr.io"
14+
secret_key: "username"
15+
exported_env_variable_name: "REGISTRY_USERNAME"
16+
- secret_path: "static/ci/username-password-combinations/adabay.azurecr.io"
17+
secret_key: "password"
18+
exported_env_variable_name: "REGISTRY_PASSWORD"

Staging.Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM httpd:2.4
2+
3+
COPY --chown=www-data:www-data _site /usr/local/apache2/htdocs/

0 commit comments

Comments
 (0)