Merge branch 'dev' of https://gitlab.lesko.me/marek/centrum into dev
This commit is contained in:
@@ -77,17 +77,9 @@ docker-build:
|
||||
|
||||
docker-deploy:
|
||||
stage: release
|
||||
image: docker:latest
|
||||
services:
|
||||
- name: docker:dind
|
||||
alias: docker
|
||||
environment: production
|
||||
variables:
|
||||
DOCKER_DRIVER: overlay2
|
||||
DOCKER_HOST: tcp://docker:2375
|
||||
DOCKER_TLS_CERTDIR: ""
|
||||
tags:
|
||||
- production
|
||||
script:
|
||||
- echo "$CI_REGISTRY_PASSWORD" | docker login -u "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY
|
||||
- docker compose -f deployment/docker-compose.yaml up -d
|
||||
- docker image prune -f -a
|
||||
|
||||
@@ -6,7 +6,7 @@ using Microsoft.AspNetCore.Authorization;
|
||||
namespace Api.Controllers
|
||||
{
|
||||
[ApiController]
|
||||
[Authorize]
|
||||
// [Authorize]
|
||||
[Route("api/[controller]")]
|
||||
public class ProductController : ControllerBase
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user