Skip to content
Snippets Groups Projects
Commit 0f0224b4 authored by Bc. Sergei Shestakov's avatar Bc. Sergei Shestakov
Browse files

Update .gitlab-ci.yml file

parent 59612d68
No related branches found
No related tags found
No related merge requests found
Pipeline #117428 failed
stages:
- build
- test
- push
variables:
IMAGE_NAME: registry.gitlab.fel.cvut.cz/your-username/test-app
build:
stage: build
script:
- echo "hello"
- mkdir folder
- touch folder/test.txt
artifacts:
paths:
- folder
- docker build -t $IMAGE_NAME:${CI_COMMIT_SHORT_SHA} .
only:
- main
test:
stage: test
push:
stage: push
script:
- echo "tests"
- test -f "folder/test.txt"
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker push $IMAGE_NAME:${CI_COMMIT_SHORT_SHA}
only:
- main
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment