3030 private-key : ${{ secrets.AUTOMATION_KEY }}
3131
3232 - name : Checkout code
33- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # pinned to 4.1.7
33+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # pinned to 6.0.2
3434 with :
3535 ref : main
3636
@@ -42,36 +42,22 @@ jobs:
4242 branch : ${{ format('bot/update-api-docs-{0}', github.run_number) }}
4343
4444 - name : Checkout code
45- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # pinned to 4.1.7
45+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # pinned to 6.0.2
4646 with :
4747 ref : ${{ format('bot/update-api-docs-{0}', github.run_number) }}
4848 fetch-depth : 0 # required to access tags
4949 submodules : " true"
5050
5151 - name : Log in to GitHub Docker Registry
52- uses : docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # pinned to v3.3 .0
52+ uses : docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # pinned to v3.7 .0
5353 with :
54- registry : docker.pkg.github.com # ghcr.io not yet enabled for Azure org
54+ registry : ghcr.io
5555 username : ${{ github.actor }}
5656 password : ${{ secrets.GITHUB_TOKEN }}
5757
5858 - name : Build devcontainer image
59- # We must issue a manual pull before the build so the image gets copied locally, because
60- # docker.pkg.github.com is not a valid Docker registry and doesn't work with --cache-from,
61- # however, `docker pull` will fall back to other methods that do work and get the image loaded.
62- #
63- # This message comes from "docker pull":
64- #
65- # Run docker pull docker.pkg.github.com/azure/azure-service-operator/aso-devcontainer:latest
66- # WARNING: ⚠️ Failed to pull manifest by the resolved digest. This registry does not
67- # appear to conform to the distribution registry specification; falling back to
68- # pull by tag. This fallback is DEPRECATED, and will be removed in a future
69- # release. Please contact admins of https://docker.pkg.github.com. ⚠️
70- #
71- # See: https://github.com/moby/moby/issues/41687#issuecomment-733826074 and related issues
7259 run : |
73- docker pull docker.pkg.github.com/azure/azure-service-operator/aso-devcontainer:latest
74- docker build --cache-from docker.pkg.github.com/azure/azure-service-operator/aso-devcontainer:latest --tag devcontainer:latest .devcontainer
60+ docker build --cache-from ghcr.io/azure/azure-service-operator/aso-devcontainer:latest --tag devcontainer:latest .devcontainer
7561 env :
7662 DOCKER_BUILDKIT : 1
7763
0 commit comments