diff --git a/.github/workflows/continuous-integration-workflow.yml b/.github/workflows/continuous-integration-workflow.yml index 665bc62..011844b 100644 --- a/.github/workflows/continuous-integration-workflow.yml +++ b/.github/workflows/continuous-integration-workflow.yml @@ -8,7 +8,7 @@ on: - master schedule: - cron: '0 1 * * FRI' - + concurrency: group: ${ {github.event_name }}-${{ github.workflow }}-${{ github.ref }} cancel-in-progress: ${{github.event_name == 'pull_request'}} @@ -39,17 +39,20 @@ jobs: runs-on: ubuntu-latest steps: - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 + with: + # workaround for issue with sudo in docker-in-docker docker/build-push-action#1302 + driver: docker - name: Login to Gitlab Container Registry if: github.repository_owner == 'votca' && ( github.event_name == 'push' || github.event_name == 'schedule' ) - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: registry.gitlab.com username: ${{ secrets.GITLAB_REGISTRY_USERNAME }} password: ${{ secrets.GITLAB_REGISTRY_TOKEN }} - name: Login to Github Container Registry if: github.repository_owner == 'votca' && ( github.event_name == 'push' || github.event_name == 'schedule' ) - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} @@ -57,11 +60,11 @@ jobs: - name: Convert build_args id: build_args run: | - echo "args<> $GITHUB_OUTPUT + echo "args<> $GITHUB_OUTPUT echo ${{ matrix.config.build_args }} | sed 's/,/\n/g' >> $GITHUB_OUTPUT echo "EOF" >> $GITHUB_OUTPUT - name: Build and Push Docker images for all Container Registries - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v6 with: tags: | registry.gitlab.com/votca/buildenv/${{ matrix.config.dockerfile }}:${{ matrix.config.tag }}