Skip to content

Commit

Permalink
Merge pull request #219 from votca/pam_fix
Browse files Browse the repository at this point in the history
CI: workaround sudo pam error
  • Loading branch information
junghans authored Jan 18, 2025
2 parents 3c00c48 + 2c4767d commit 1fe9499
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/continuous-integration-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'}}
Expand Down Expand Up @@ -39,29 +39,32 @@ 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 }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Convert build_args
id: build_args
run: |
echo "args<<EOF" >> $GITHUB_OUTPUT
echo "args<<EOF" >> $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 }}
Expand Down

0 comments on commit 1fe9499

Please sign in to comment.