Skip to content

Commit

Permalink
Merge pull request #141 from collective/erral-gitlab-misplacedç
Browse files Browse the repository at this point in the history
.gitlab-ci.yml file was misplaced
  • Loading branch information
erral authored Apr 22, 2024
2 parents 549bf4e + eff50c0 commit 6456a56
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .gitlab-ci.yml → ...okiecutter.project_slug }}/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,30 +23,30 @@ build-backend:
script:
- cd backend
- make build-image
- docker push $CI_REGISTRY/{{ github_organization }}/{{ project_slug }}/backend:latest
- docker push $CI_REGISTRY/{{ cookiecutter.github_organization }}/{{ cookiecutter.project_slug }}/backend:latest

build-frontend:
stage: build
script:
- cd frontend
- make build-image
- docker push $CI_REGISTRY/{{ github_organization }}/{{ project_slug }}/frontend:latest
- docker push $CI_REGISTRY/{{ cookiecutter.github_organization }}/{{ cookiecutter.project_slug }}/frontend:latest

release-image-backend:
stage: release
script:
- docker pull $CI_REGISTRY/{{ github_organization }}/{{ project_slug }}/backend:latest
- docker tag $CI_REGISTRY/{{ github_organization }}/{{ project_slug }}/backend $CONTAINER_BACKEND_RELEASE_IMAGE
- docker push $CI_REGISTRY/{{ github_organization }}/{{ project_slug }}/backend:latest
- docker pull $CI_REGISTRY/{{ cookiecutter.github_organization }}/{{ cookiecutter.project_slug }}/backend:latest
- docker tag $CI_REGISTRY/{{ cookiecutter.github_organization }}/{{ cookiecutter.project_slug }}/backend $CONTAINER_BACKEND_RELEASE_IMAGE
- docker push $CI_REGISTRY/{{ cookiecutter.github_organization }}/{{ cookiecutter.project_slug }}/backend:latest
only:
- main

release-image-frontend:
stage: release
script:
- docker $CI_REGISTRY/{{ github_organization }}/{{ project_slug }}/frontend:latest
- docker tag $CI_REGISTRY/{{ github_organization }}/{{ project_slug }}/frontend $CONTAINER_FRONTEND_RELEASE_IMAGE
- docker push $CI_REGISTRY/{{ github_organization }}/{{ project_slug }}/frontend:latest
- docker $CI_REGISTRY/{{ cookiecutter.github_organization }}/{{ cookiecutter.project_slug }}/frontend:latest
- docker tag $CI_REGISTRY/{{ cookiecutter.github_organization }}/{{ cookiecutter.project_slug }}/frontend $CONTAINER_FRONTEND_RELEASE_IMAGE
- docker push $CI_REGISTRY/{{ cookiecutter.github_organization }}/{{ cookiecutter.project_slug }}/frontend:latest
only:
- main

Expand Down

0 comments on commit 6456a56

Please sign in to comment.