From 444a79388efbcf652d57c9e2eab62b8601f0cc2c Mon Sep 17 00:00:00 2001 From: Dmitry Maslennikov Date: Wed, 10 Jan 2024 16:30:06 +0400 Subject: [PATCH] updated ci --- .github/workflows/main.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ec21e13..c7d3a46 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,7 +13,8 @@ jobs: build: runs-on: ubuntu-latest env: - dockerhub_auth: ${{ secrets.DOCKERHUB_TOKEN }} + dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} + dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }} steps: - uses: actions/checkout@v3 - run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* @@ -47,21 +48,21 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} - name: Login to Docker Hub - if: ${{ env.dockerhub_auth != '' }} && github.event_name != 'pull_request' + if: env.dockerhub_username != '' && env.dockerhub_token != '' && github.event_name != 'pull_request' uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Set up QEMU - if: ${{ env.dockerhub_auth != '' }} && github.event_name != 'pull_request' + if: env.dockerhub_username != '' && env.dockerhub_token != '' && github.event_name != 'pull_request' uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx - if: ${{ env.dockerhub_auth != '' }} && github.event_name != 'pull_request' + if: env.dockerhub_username != '' && env.dockerhub_token != '' && github.event_name != 'pull_request' uses: docker/setup-buildx-action@v2 with: platforms: linux/amd64,linux/arm64 - name: Docker image - if: ${{ env.dockerhub_auth != '' }} && github.event_name != 'pull_request' + if: env.dockerhub_username != '' && env.dockerhub_token != '' && github.event_name != 'pull_request' run: | mkdir plugins IMAGE=litesolutions/jenkins-objectscriptquality