Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker v2: second try #136

Merged
merged 2 commits into from
Dec 11, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 25 additions & 18 deletions .github/workflows/continuous-integration-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ jobs:
- {dockerfile: 'ubuntu', tag: 'devel', build_args: 'TAG=devel', continue-on-error: 'true'}
- {dockerfile: 'ubuntu', tag: '18.04', build_args: 'TAG=18.04'}
- {dockerfile: 'opensuse', tag: 'latest'}
- {dockerfile: 'fedora', tag: 'gmx2019_d', build_args: 'GMX_BRANCH=release-2019,GMX_DOUBLE=ON'}
- {dockerfile: 'fedora', tag: 'gmx2019_d', build_args: 'GMX_BRANCH=release-2019', build_args2: 'GMX_DOUBLE=ON'}
- {dockerfile: 'fedora', tag: 'gmx2019', build_args: 'GMX_BRANCH=release-2019'}
- {dockerfile: 'fedora', tag: 'gmx2020_d', build_args: 'GMX_BRANCH=release-2020,GMX_DOUBLE=ON'}
- {dockerfile: 'fedora', tag: 'gmx2020_d', build_args: 'GMX_BRANCH=release-2020', build_args2: 'GMX_DOUBLE=ON'}
- {dockerfile: 'fedora', tag: 'gmx2020', build_args: 'GMX_BRANCH=release-2020'}
- {dockerfile: 'fedora', tag: 'gmx2021_d', build_args: 'GMX_BRANCH=release-2021,GMX_DOUBLE=ON'}
- {dockerfile: 'fedora', tag: 'gmx2021_d', build_args: 'GMX_BRANCH=release-2021', build_args2: 'GMX_DOUBLE=ON'}
- {dockerfile: 'fedora', tag: 'gmx2021', build_args: 'GMX_BRANCH=release-2021'}
- {dockerfile: 'fedora', tag: 'gmx9999_d', build_args: 'GMX_BRANCH=master,GMX_DOUBLE=ON'}
- {dockerfile: 'fedora', tag: 'gmx9999_d', build_args: 'GMX_BRANCH=master', build_args2: 'GMX_DOUBLE=ON'}
- {dockerfile: 'fedora', tag: 'gmx9999', build_args: 'GMX_BRANCH=master'}
- {dockerfile: 'fedora', tag: 'nogmx', build_args: 'GMX_BRANCH=none'}
- {dockerfile: 'fedora', tag: 'intel', build_args: 'INTEL=yes'}
Expand All @@ -37,26 +37,33 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout out code
uses: actions/[email protected]
- name: Build Docker images for GitLab
uses: docker/[email protected]
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
with:
driver-opts: image=moby/buildkit:buildx-stable-1
buildkitd-flags: --debug
- name: Login to GitLab
uses: docker/login-action@v1
with:
repository: votca/buildenv/${{ matrix.config.dockerfile }}
registry: registry.gitlab.com
username: votca-bot
password: ${{ secrets.GITLAB_REGISTRY_TOKEN }}
tags: ${{ matrix.config.tag }}
dockerfile: ${{ matrix.config.dockerfile }}
build_args: ${{ matrix.config.build_args }}
push: ${{ github.event_name == 'push' || github.event_name == 'schedule' }}
- name: Build Docker images for Github Container Registry
uses: docker/[email protected]
- name: Login to Github Container Registry
uses: docker/login-action@v1
with:
repository: votca/buildenv/${{ matrix.config.dockerfile }}
registry: ghcr.io
username: votca-bot
password: ${{ secrets.VOTCA_BOT_TOKEN }}
tags: ${{ matrix.config.tag }}
dockerfile: ${{ matrix.config.dockerfile }}
build_args: ${{ matrix.config.build_args }}
- name: Build and push
uses: docker/build-push-action@v2
with:
tags: |
registry.gitlab.com/votca/buildenv/${{ matrix.config.dockerfile }}:${{ matrix.config.tag }}
ghcr.io/votca/buildenv/${{ matrix.config.dockerfile }}:${{ matrix.config.tag }}
file: ${{ matrix.config.dockerfile }}
build-args: |
${{ matrix.config.build_args }}
${{ matrix.config.build_args2 }}
pull: true
push: ${{ github.event_name == 'push' || github.event_name == 'schedule' }}