Skip to content
Snippets Groups Projects
Commit 269a1cb5 authored by Adam Czepiel's avatar Adam Czepiel
Browse files

Update Dockerfile, .gitlab-ci.yml

parent 1c51901b
No related branches found
No related tags found
No related merge requests found
Pipeline #743990 passed
...@@ -9,6 +9,26 @@ stages: ...@@ -9,6 +9,26 @@ stages:
# there are more stages in the imported file but we only want to import some # there are more stages in the imported file but we only want to import some
# - test # - test
- publish - publish
- container
container:
stage: container
tags:
- runner:docker
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY/$CI_PROJECT_PATH/$CI_COMMIT_BRANCH:v1.0
#only:
# refs:
# - branches
# changes:
# - Dockerfile
except:
- schedules
build-branch: build-branch:
extends: .build-branch extends: .build-branch
......
FROM node:16-alpine
WORKDIR /app
COPY ./ .
RUN yarn install -y
CMD ["yarn", "run", "dev"]
EXPOSE 9748
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment