update all nugets #89
This file contains hidden or 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
name: AzureDevOpsTeamMembersVelocity-Image | |
on: | |
push: | |
paths: | |
- 'AzureDevOpsTeamMembersVelocity/**' | |
- 'IntegrationTest/**' | |
- 'UnitTest/**' | |
branches: | |
- main | |
pull_request: | |
paths: | |
- 'AzureDevOpsTeamMembersVelocity/**' | |
- 'IntegrationTest/**' | |
- 'UnitTest/**' | |
types: [opened, synchronize, reopened] | |
env: | |
REGISTRY_NAME: erabliereapi | |
IMAGE_NAME: azuredevopsteammembersvelocity | |
IMAGE_TAG: latest | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
# Login into acr | |
- name: Login into ACR | |
run: echo ${{ secrets.registryPassword }} | docker login -u ${{ secrets.registryUsername }} --password-stdin | |
# Build the image | |
- name: Docker build | |
run: docker build -t $IMAGE_NAME:$IMAGE_TAG . | |
# Tag the images | |
- name: Docker tag | |
if: ${{ github.ref == 'refs/heads/main' }} | |
run: docker tag $IMAGE_NAME:$IMAGE_TAG $REGISTRY_NAME/$IMAGE_NAME:$IMAGE_TAG | |
# Push the image | |
- name: Docker push | |
if: ${{ github.ref == 'refs/heads/main' }} | |
run: docker push $REGISTRY_NAME/$IMAGE_NAME:$IMAGE_TAG |