devops: try to use azure/docker-login instead of manual login (#3714)
Manual login appeared to be successful, but rejected docker push. References #2926
This commit is contained in:
parent
fad840d88d
commit
ba7093cbe8
11
.github/workflows/publish_canary_docker.yml
vendored
11
.github/workflows/publish_canary_docker.yml
vendored
|
|
@ -16,20 +16,23 @@ jobs:
|
|||
if: github.repository == 'microsoft/playwright'
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: azure/docker-login@v1
|
||||
with:
|
||||
login-server: playwright.azurecr.io
|
||||
username: playwright
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 10.15
|
||||
- run: npm ci
|
||||
- run: npm run build
|
||||
- name: login & publish to docker
|
||||
- name: docker: build & publish
|
||||
run: |
|
||||
# login to docker
|
||||
docker login --username playwright --password ${{ secrets.DOCKER_PASSWORD }} playwright.azurecr.io
|
||||
# build docker image
|
||||
./docs/docker/build.sh
|
||||
# tag image accordingly
|
||||
docker tag playwright:localbuild public/playwright:next
|
||||
docker tag playwright:localbuild public/playwright:sha-$(git rev-parse HEAD)
|
||||
docker tag playwright:localbuild public/playwright:sha-${{ github.sha }}
|
||||
docker rmi playwright:localbuild
|
||||
# push image to registry
|
||||
docker push public/playwright:next
|
||||
|
|
|
|||
Loading…
Reference in a new issue