Skip to content

fix: stop checking for py2 stuff #150

fix: stop checking for py2 stuff

fix: stop checking for py2 stuff #150

# 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
certificates-generation:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub container registry
uses: docker/#-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: certificates-generation
push: ${{ github.event_name == 'push' && github.repository == 'DIRACGrid/management' && github.ref_name == 'main' }}
tags: ghcr.io/diracgrid/management/certificates-generation:latest
platforms: linux/amd64,linux/arm64
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/#-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/#-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;