mirror of
https://github.com/docker/login-action.git
synced 2026-06-11 09:22:57 +00:00
Compare commits
1 Commits
dependabot
...
dependabot
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ae660623c7 |
76
.github/workflows/ci.yml
vendored
76
.github/workflows/ci.yml
vendored
@@ -7,9 +7,6 @@ concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
GHCR_TEST_IMAGE: ghcr.io/docker/login-action-test:ci-${{ github.sha }}
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
@@ -59,39 +56,8 @@ jobs:
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
logout: ${{ matrix.logout }}
|
||||
|
||||
push-ghcr:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
steps:
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
-
|
||||
name: Login to GitHub Container Registry
|
||||
uses: ./
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
-
|
||||
name: Build and push test image
|
||||
run: |
|
||||
docker buildx build --push -t "${GHCR_TEST_IMAGE}" - <<EOF
|
||||
FROM scratch
|
||||
LABEL org.opencontainers.image.title="docker/login-action CI test image"
|
||||
LABEL org.opencontainers.image.description="Empty image used by CI to verify GHCR authentication."
|
||||
LABEL org.opencontainers.image.source="https://github.com/${GITHUB_REPOSITORY}"
|
||||
EOF
|
||||
|
||||
dind:
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
- push-ghcr
|
||||
permissions:
|
||||
contents: read
|
||||
packages: read
|
||||
env:
|
||||
DOCKER_CONFIG: $HOME/.docker
|
||||
steps:
|
||||
@@ -103,19 +69,19 @@ jobs:
|
||||
uses: ./
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
username: ${{ secrets.GHCR_USERNAME }}
|
||||
password: ${{ secrets.GHCR_PAT }}
|
||||
-
|
||||
name: DinD
|
||||
uses: docker://docker:29.3@sha256:4d90f1f6c400315c2dba96d3ec93c01e64198395cbba04f79d12adce4f737029
|
||||
with:
|
||||
entrypoint: docker
|
||||
args: pull ${{ env.GHCR_TEST_IMAGE }}
|
||||
args: pull ghcr.io/docker-ghactiontest/test
|
||||
-
|
||||
name: Pull test image
|
||||
name: Pull private image
|
||||
run: |
|
||||
docker image prune -a -f >/dev/null 2>&1
|
||||
docker pull "${GHCR_TEST_IMAGE}"
|
||||
docker pull ghcr.io/docker-ghactiontest/test
|
||||
|
||||
acr:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -127,7 +93,7 @@ jobs:
|
||||
name: Login to ACR
|
||||
uses: ./
|
||||
with:
|
||||
registry: officialgithubactions.azurecr.io
|
||||
registry: ${{ secrets.AZURE_REGISTRY_NAME }}.azurecr.io
|
||||
username: ${{ secrets.AZURE_CLIENT_ID }}
|
||||
password: ${{ secrets.AZURE_CLIENT_SECRET }}
|
||||
|
||||
@@ -147,8 +113,8 @@ jobs:
|
||||
name: Login to Docker Hub
|
||||
uses: ./
|
||||
with:
|
||||
username: ${{ vars.DOCKERPUBLICBOT_USERNAME }}
|
||||
password: ${{ secrets.DOCKERPUBLICBOT_READ_PAT }}
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
ecr:
|
||||
runs-on: ${{ matrix.os }}
|
||||
@@ -166,7 +132,7 @@ jobs:
|
||||
name: Login to ECR
|
||||
uses: ./
|
||||
with:
|
||||
registry: 175142243308.dkr.ecr.us-east-1.amazonaws.com
|
||||
registry: ${{ secrets.AWS_ACCOUNT_NUMBER }}.dkr.ecr.us-east-1.amazonaws.com
|
||||
username: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
password: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
|
||||
@@ -184,7 +150,7 @@ jobs:
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
-
|
||||
name: Configure AWS Credentials
|
||||
uses: aws-actions/configure-aws-credentials@acca2b1b2070338fb9fd1ca27ecee81d687e58e5 # v6.1.2
|
||||
uses: aws-actions/configure-aws-credentials@e7f100cf4c008499ea8adda475de1042d6975c7b # v6.2.0
|
||||
with:
|
||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
@@ -193,7 +159,7 @@ jobs:
|
||||
name: Login to ECR
|
||||
uses: ./
|
||||
with:
|
||||
registry: 175142243308.dkr.ecr.us-east-1.amazonaws.com
|
||||
registry: ${{ secrets.AWS_ACCOUNT_NUMBER }}.dkr.ecr.us-east-1.amazonaws.com
|
||||
|
||||
ecr-public:
|
||||
runs-on: ${{ matrix.os }}
|
||||
@@ -232,7 +198,7 @@ jobs:
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
-
|
||||
name: Configure AWS Credentials
|
||||
uses: aws-actions/configure-aws-credentials@acca2b1b2070338fb9fd1ca27ecee81d687e58e5 # v6.1.2
|
||||
uses: aws-actions/configure-aws-credentials@e7f100cf4c008499ea8adda475de1042d6975c7b # v6.2.0
|
||||
with:
|
||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
@@ -300,7 +266,7 @@ jobs:
|
||||
name: Login to Google Artifact Registry
|
||||
uses: ./
|
||||
with:
|
||||
registry: us-east4-docker.pkg.dev
|
||||
registry: ${{ secrets.GAR_LOCATION }}-docker.pkg.dev
|
||||
username: _json_key
|
||||
password: ${{ secrets.GAR_JSON_KEY }}
|
||||
|
||||
@@ -335,8 +301,8 @@ jobs:
|
||||
uses: ./
|
||||
with:
|
||||
registry-auth: |
|
||||
- username: ${{ vars.DOCKERPUBLICBOT_USERNAME }}
|
||||
password: ${{ secrets.DOCKERPUBLICBOT_READ_PAT }}
|
||||
- username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
@@ -384,8 +350,8 @@ jobs:
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
registry-auth: |
|
||||
- username: ${{ vars.DOCKERPUBLICBOT_USERNAME }}
|
||||
password: ${{ secrets.DOCKERPUBLICBOT_READ_PAT }}
|
||||
- username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
-
|
||||
name: Check
|
||||
run: |
|
||||
@@ -410,8 +376,8 @@ jobs:
|
||||
name: Login to Docker Hub
|
||||
uses: ./
|
||||
with:
|
||||
username: ${{ vars.DOCKERPUBLICBOT_USERNAME }}
|
||||
password: ${{ secrets.DOCKERPUBLICBOT_READ_PAT }}
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
scope: '@push'
|
||||
-
|
||||
name: Print config.json files
|
||||
@@ -440,8 +406,8 @@ jobs:
|
||||
name: Login to Docker Hub
|
||||
uses: ./
|
||||
with:
|
||||
username: ${{ vars.DOCKERPUBLICBOT_USERNAME }}
|
||||
password: ${{ secrets.DOCKERPUBLICBOT_READ_PAT }}
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
scope: 'docker/buildx-bin@push'
|
||||
-
|
||||
name: Print config.json files
|
||||
|
||||
245
dist/index.cjs
generated
vendored
245
dist/index.cjs
generated
vendored
File diff suppressed because one or more lines are too long
8
dist/index.cjs.map
generated
vendored
8
dist/index.cjs.map
generated
vendored
File diff suppressed because one or more lines are too long
5
dist/licenses.txt
generated
vendored
5
dist/licenses.txt
generated
vendored
@@ -2891,7 +2891,7 @@ The following npm packages may be included in this product:
|
||||
- agent-base@9.0.0
|
||||
- https-proxy-agent@7.0.4
|
||||
- https-proxy-agent@7.0.6
|
||||
- https-proxy-agent@9.1.0
|
||||
- https-proxy-agent@9.0.0
|
||||
- socks-proxy-agent@8.0.3
|
||||
|
||||
These packages each contain the following license:
|
||||
@@ -2924,7 +2924,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
The following npm packages may be included in this product:
|
||||
|
||||
- http-proxy-agent@7.0.2
|
||||
- http-proxy-agent@9.1.0
|
||||
- http-proxy-agent@9.0.0
|
||||
|
||||
These packages each contain the following license:
|
||||
|
||||
@@ -5604,7 +5604,6 @@ The following npm packages may be included in this product:
|
||||
- imurmurhash@0.1.4
|
||||
- is-gzip@1.0.0
|
||||
- isarray@1.0.0
|
||||
- proxy-agent-negotiate@1.1.0
|
||||
- xml-naming@0.1.0
|
||||
|
||||
These packages each contain the following license:
|
||||
|
||||
@@ -27,8 +27,8 @@
|
||||
"@aws-sdk/client-ecr": "^3.1050.0",
|
||||
"@aws-sdk/client-ecr-public": "^3.1050.0",
|
||||
"@docker/actions-toolkit": "^0.91.0",
|
||||
"http-proxy-agent": "^9.1.0",
|
||||
"https-proxy-agent": "^9.1.0",
|
||||
"http-proxy-agent": "^9.0.0",
|
||||
"https-proxy-agent": "^9.0.0",
|
||||
"js-yaml": "^4.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
34
yarn.lock
34
yarn.lock
@@ -3274,8 +3274,8 @@ __metadata:
|
||||
eslint-plugin-prettier: "npm:^5.5.5"
|
||||
generate-license-file: "npm:^4.1.1"
|
||||
globals: "npm:^17.3.0"
|
||||
http-proxy-agent: "npm:^9.1.0"
|
||||
https-proxy-agent: "npm:^9.1.0"
|
||||
http-proxy-agent: "npm:^9.0.0"
|
||||
https-proxy-agent: "npm:^9.0.0"
|
||||
js-yaml: "npm:^4.1.1"
|
||||
prettier: "npm:^3.8.1"
|
||||
typescript: "npm:^5.9.3"
|
||||
@@ -4129,14 +4129,13 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"http-proxy-agent@npm:^9.1.0":
|
||||
version: 9.1.0
|
||||
resolution: "http-proxy-agent@npm:9.1.0"
|
||||
"http-proxy-agent@npm:^9.0.0":
|
||||
version: 9.0.0
|
||||
resolution: "http-proxy-agent@npm:9.0.0"
|
||||
dependencies:
|
||||
agent-base: "npm:9.0.0"
|
||||
debug: "npm:^4.3.4"
|
||||
proxy-agent-negotiate: "npm:1.1.0"
|
||||
checksum: 10/d76441afe6849c3ea6f8143371062908fe4cb1037c5f6ad709f068e8086afd544e1980cc33b06513770878f423529db6f33ac0b5db4877214ec5a157e1e950c9
|
||||
checksum: 10/8cf23a49ab274b2a5199011e5a96268d75dd6e4031cf72b723182c41b47d876c507c2fa125451743b87cd9f826cf60f5260dcc5e7db58f9dcc38823c9c07e625
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -4160,14 +4159,13 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"https-proxy-agent@npm:^9.1.0":
|
||||
version: 9.1.0
|
||||
resolution: "https-proxy-agent@npm:9.1.0"
|
||||
"https-proxy-agent@npm:^9.0.0":
|
||||
version: 9.0.0
|
||||
resolution: "https-proxy-agent@npm:9.0.0"
|
||||
dependencies:
|
||||
agent-base: "npm:9.0.0"
|
||||
debug: "npm:^4.3.4"
|
||||
proxy-agent-negotiate: "npm:1.1.0"
|
||||
checksum: 10/45021d326c032bf8cd480acee488d5f701842cbef4756a33b81244a872304c918498ef6cf667d8348c11e9b065dd520ec1fd9138196147f608c5837500e7395b
|
||||
checksum: 10/27457d671278c8c1074cc901fe305b70d1e340127433219124c4aefc44153a179a8921e4b16d67beb2868a3a39b6b7ec84d91d8f24f2ec1d39cf4ac385351a92
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -5486,18 +5484,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"proxy-agent-negotiate@npm:1.1.0":
|
||||
version: 1.1.0
|
||||
resolution: "proxy-agent-negotiate@npm:1.1.0"
|
||||
peerDependencies:
|
||||
kerberos: ^2.0.0
|
||||
peerDependenciesMeta:
|
||||
kerberos:
|
||||
optional: true
|
||||
checksum: 10/4554c42b8b872f37cf76c9044b7a5827bccf41ad77a1992b09bb89b84c779f5536bdd0d3312f247565e09fba8700e48a25f233e339705978242e3ca1d0dab149
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"pump@npm:^2.0.0":
|
||||
version: 2.0.1
|
||||
resolution: "pump@npm:2.0.1"
|
||||
|
||||
Reference in New Issue
Block a user