Merge pull request #58 from chrisburr/py311 #145
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow creates docker images that are then used for: | |
# | |
# - DIRAC distribution (create DIRAC release tarballs) | |
# - running DIRAC integration tests in GitHub actions (slc6+cc7+c8) | |
# | |
# All created images are then uploaded to GitHub packages and docker hub | |
name: Create images | |
on: push | |
# on: | |
# schedule: | |
# # every Sunday | |
# - cron: '0 0 * * 0' | |
jobs: | |
# Images for running integration tests | |
el9-dirac: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: build | |
run: docker build -t el9-dirac el9-dirac/ | |
- name: tag | |
run: | | |
docker tag el9-dirac diracgrid/el9-dirac:latest | |
docker tag el9-dirac ghcr.io/diracgrid/management/el9-dirac:latest | |
- name: show | |
run: docker images | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: push | |
run: | | |
docker push diracgrid/el9-dirac:latest; | |
docker push ghcr.io/diracgrid/management/el9-dirac:latest; | |
cc7-dirac: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: build | |
run: docker build -t cc7-dirac cc7-dirac/ | |
- name: tag | |
run: | | |
docker tag cc7-dirac diracgrid/cc7-dirac:latest | |
docker tag cc7-dirac ghcr.io/diracgrid/management/cc7-dirac:latest | |
- name: show | |
run: docker images | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: push | |
run: | | |
docker push diracgrid/cc7-dirac:latest; | |
docker push ghcr.io/diracgrid/management/cc7-dirac:latest; |