From 4da0c81f4443a25b5c2ef93276199f248ac90726 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 28 Apr 2021 20:58:11 +0200 Subject: [PATCH] root: use docker action to login Signed-off-by: Jens Langhammer --- .github/workflows/release.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 393c72c93..42c97d841 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,10 +11,10 @@ jobs: steps: - uses: actions/checkout@v1 - name: Docker Login Registry - env: - DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} - DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} - run: docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_PASSWORD }} + password: ${{ secrets.DOCKER_USERNAME }} - name: Building Docker Image run: docker build --no-cache @@ -39,10 +39,10 @@ jobs: swagger generate client -f ../swagger.yaml -A authentik -t pkg/ go build -v . - name: Docker Login Registry - env: - DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} - DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} - run: docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_PASSWORD }} + password: ${{ secrets.DOCKER_USERNAME }} - name: Building Docker Image run: | cd outpost/ @@ -63,10 +63,10 @@ jobs: run: | docker run --rm -v $(pwd):/local openapitools/openapi-generator-cli generate -i /local/swagger.yaml -g typescript-fetch -o /local/web/api --additional-properties=typescriptThreePlus=true,supportsES6=true,npmName=authentik-api,npmVersion=1.0.0 - name: Docker Login Registry - env: - DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} - DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} - run: docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_PASSWORD }} + password: ${{ secrets.DOCKER_USERNAME }} - name: Building Docker Image run: | cd web/