File tree Expand file tree Collapse file tree 3 files changed +36
-2
lines changed
Expand file tree Collapse file tree 3 files changed +36
-2
lines changed Original file line number Diff line number Diff line change 1+ name : " devrelease:docker"
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ jobs :
8+ publish-canary-docker :
9+ name : " publish to DockerHub"
10+ # We use `docker push --all-tags` to push all tags which is a newly addition to docker
11+ runs-on : ubuntu-20.04
12+ if : github.repository == 'microsoft/playwright-java'
13+ steps :
14+ - uses : actions/checkout@v2
15+ - uses : azure/docker-login@v1
16+ with :
17+ login-server : playwright.azurecr.io
18+ username : playwright
19+ password : ${{ secrets.DOCKER_PASSWORD }}
20+ - uses : actions/checkout@v2
21+ - name : Build Docker image
22+ run : docker build -t playwright-java:localbuild-focal -f Dockerfile.focal .
23+ - name : tag & publish
24+ run : |
25+ ./utils/docker/tag_image_and_push.sh playwright-java:localbuild-focal playwright.azurecr.io/public/playwright/java:next
26+ ./utils/docker/tag_image_and_push.sh playwright-java:localbuild-focal playwright.azurecr.io/public/playwright/java:next-focal
27+ ./utils/docker/tag_image_and_push.sh playwright-java:localbuild-focal playwright.azurecr.io/public/playwright/java:sha-${{ github.sha }}
Original file line number Diff line number Diff line change 99 - release-*
1010 pull_request :
1111 paths :
12- - ' .github/workflows/test_docker.yml'
13- - ' Dockerfile*'
12+ - .github/workflows/test_docker.yml
13+ - Dockerfile.*
14+ - scripts/CLI_VERSION
15+ - ' **/pom.xml'
1416 branches :
1517 - master
1618 - release-*
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ echo " -- tagging: $2 "
4+ docker tag $1 $2
5+ docker push $2
You can’t perform that action at this time.
0 commit comments