Created
April 12, 2023 14:09
-
-
Save thyagoluciano/fae36c0d4b240296c2c26782b36e8d5b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trigger: | |
branches: | |
include: | |
- fahz-migracao | |
pool: | |
name: 'Azure Pipelines' | |
vmImage: 'Ubuntu 20.04' | |
variables: | |
- group: AWS_ECR_SECRETS_DEV | |
- name: buildConfiguration | |
value: 'Release' | |
- name: dotnetVersion | |
value: '6.0.x' | |
- name: imageName | |
value: 'fahz-cadastro' | |
- name: DOCKER_REPOSITORY | |
value: $(AWS_ACCOUNT_ID).dkr.ecr.$(AWS_REGION).amazonaws.com/fahz/$(DOCKER_REPOSITORY_NAME) | |
steps: | |
- script: | | |
aws ecr get-login-password --region $(AWS_REGION) | docker login --username AWS --password-stdin $(AWS_ACCOUNT_ID).dkr.ecr.$(AWS_REGION).amazonaws.com | |
displayName: 'Login to AWS' | |
env: | |
AWS_ACCESS_KEY_ID: $(AWS_ACCESS_KEY_ID) | |
AWS_SECRET_ACCESS_KEY: $(AWS_SECRET_ACCESS_KEY_ID) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment