Skip to content

Commit 86670e0

Browse files
author
Matthew Harris
committed
Adjusted for PIA
1 parent 4260bf9 commit 86670e0

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

.github/workflows/webapp.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,18 @@ jobs:
2323
- name: Build Docker Image
2424
run: docker build --no-cache --build-arg app_version=1.0.$GITHUB_RUN_NUMBER --build-arg source_version=$GITHUB_SHA -t pia/azure-aisearch-webapp:latest -f ./src/Azure.AISearch.WebApp/Dockerfile ./src/Azure.AISearch.WebApp
2525

26-
- name: Log in to registry
27-
uses: docker/login-action@v2
28-
with:
29-
registry: https://index.docker.io/v1/
30-
username: ${{ secrets.DOCKER_USERNAME }}
31-
password: ${{ secrets.DOCKER_TOKEN }}
32-
33-
- name: Push Docker Image to GitHub
34-
run: |
35-
#echo "${{ secrets.DOCKER_TOKEN }}" | docker login ghcr.io -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
36-
docker tag pia/azure-aisearch-webapp:latest ghcr.io/pia/azure-aisearch-webapp:latest
37-
docker push ghcr.io/pia/azure-aisearch-webapp:latest
26+
#- name: Log in to registry
27+
# uses: docker/login-action@v2
28+
# with:
29+
# registry: https://index.docker.io/v1/
30+
# username: ${{ secrets.DOCKER_USERNAME }}
31+
# password: ${{ secrets.DOCKER_TOKEN }}
32+
33+
#- name: Push Docker Image to GitHub
34+
# run: |
35+
# #echo "${{ secrets.DOCKER_TOKEN }}" | docker login ghcr.io -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
36+
# docker tag pia/azure-aisearch-webapp:latest ghcr.io/pia/azure-aisearch-webapp:latest
37+
# docker push ghcr.io/pia/azure-aisearch-webapp:latest
3838

3939
# - name: Log in to registry
4040
# uses: docker/login-action@v2
@@ -43,13 +43,13 @@ jobs:
4343
# username: ${{ secrets.DOCKER_USERNAME }}
4444
# password: ${{ secrets.DOCKER_TOKEN }}
4545

46-
# - name: Build and push agent-service container image to registry
47-
# uses: docker/build-push-action@v3
48-
# with:
49-
# context: ./src/Azure.AISearch.WebApp
50-
# push: true
51-
# tags: index.docker.io/${{ secrets.DOCKER_USERNAME }}/azure-aisearch-webapp:latest
52-
# file: ./src/Azure.AISearch.WebApp/Dockerfile
53-
# build-args: |
54-
# app_version=1.0.${{ github.sha }}
55-
# source_version=${{ github.sha }}
46+
- name: Build and push agent-service container image to registry
47+
uses: docker/build-push-action@v3
48+
with:
49+
context: ./src/Azure.AISearch.WebApp
50+
push: true
51+
tags: index.docker.io/${{ secrets.DOCKER_USERNAME }}/azure-aisearch-webapp:latest
52+
file: ./src/Azure.AISearch.WebApp/Dockerfile
53+
build-args: |
54+
app_version=1.0.${{ github.run_number }}
55+
source_version=${{ github.sha }}

0 commit comments

Comments
 (0)