mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
72555e9ba1
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
name: Create container registry login credentials file
|
|
description: Delete previously created IAM configuration.
|
|
|
|
inputs:
|
|
registry:
|
|
description: "Container registry to use"
|
|
required: true
|
|
username:
|
|
description: "Username used for authentication."
|
|
required: true
|
|
password:
|
|
description: "Password used for authentication."
|
|
required: true
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Use docker for logging in
|
|
if: runner.os != 'macOS'
|
|
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v3.2.0
|
|
with:
|
|
registry: ${{ inputs.registry }}
|
|
username: ${{ inputs.username }}
|
|
password: ${{ inputs.password }}
|
|
|
|
- name: Manually create docker config.json
|
|
if: runner.os == 'macOS'
|
|
shell: bash
|
|
env:
|
|
REGISTRY: ${{ inputs.registry }}
|
|
USERNAME: ${{ inputs.username }}
|
|
PASSWORD: ${{ inputs.password }}
|
|
run: |
|
|
mkdir -p ~/.docker
|
|
echo "{\"auths\":{\"${REGISTRY}\":{\"username\":\"${USERNAME}\",\"password\":\"${PASSWORD}\"}}}" | tee ~/.docker/config.json
|