diff --git a/.github/workflows/docker-build-push.yml b/.github/workflows/docker-build-push.yml index 6288dc9..e56bfe8 100644 --- a/.github/workflows/docker-build-push.yml +++ b/.github/workflows/docker-build-push.yml @@ -23,18 +23,18 @@ jobs: name: Login to Harbor uses: docker/login-action@v3 with: - registry: ${{ secrets.DOCKER_REGISTRY_URL }} - username: ${{ secrets.DOCKER_REGISTRY_USER }} + registry: ${{ vars.DOCKER_REGISTRY_URL }} + username: ${{ vars.DOCKER_REGISTRY_USER }} password: ${{ secrets.DOCKER_REGISTRY_PASS }} - name: Build and push id: docker_build env: - DOCKER_REGISTRY: ${{ secrets.DOCKER_REGISTRY_URL }} + DOCKER_REGISTRY: ${{ vars.DOCKER_REGISTRY_URL }} DOCKER_REPOSITORY: breizhcamp/kalon IMAGE_TAG: ${{ steps.tag_version.outputs.new_version }} run: | - echo "$DOCKER_REGISTRY" + echo $DOCKER_REGISTRY DOCKER_BUILDKIT=1 docker build -t $DOCKER_REGISTRY/$DOCKER_REPOSITORY:$IMAGE_TAG -t $DOCKER_REGISTRY/$DOCKER_REPOSITORY:latest . docker push $DOCKER_REGISTRY/$DOCKER_REPOSITORY:$IMAGE_TAG docker push $DOCKER_REGISTRY/$DOCKER_REPOSITORY:latest