Bump urllib3 from 1.26.5 to 1.26.18 in /docs #946
Workflow file for this run
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
name: CI/CD | |
on: | |
push: | |
pull_request: | |
jobs: | |
images: | |
runs-on: ubuntu-latest | |
env: | |
RELEASE_TYPE: ${{ matrix.release_type }} | |
RELEASE_VERSION: ${{ matrix.release_version }} | |
DOCKER_BASE_REPO: gitlab-registry.cern.ch/atlas/athena | |
DOCKER_TARGET_REPO: ucatlas | |
RELEASE: ${{ format('{0}@{1}', matrix.release_type, matrix.release_version) }} | |
strategy: | |
matrix: | |
release_type: | |
- analysisbase | |
release_version: | |
- 24.2.20 | |
- 24.2.21 | |
- 24.2.22 | |
- 24.2.23 | |
- 24.2.24 | |
- 24.2.25 | |
steps: | |
- uses: actions/checkout@master | |
- name: build ${{ env['RELEASE'] }} | |
run: | | |
docker build --build-arg GIT_SHA=$GITHUB_SHA \ | |
--build-arg DOCKER_BASE_REPO \ | |
--build-arg DOCKER_IMG=$RELEASE_TYPE \ | |
--build-arg DOCKER_TAG=$RELEASE_VERSION \ | |
-t ${DOCKER_TARGET_REPO}/${RELEASE_TYPE}:${RELEASE_VERSION}-latest . | |
- name: "test bash on ${{ env['DOCKER_TARGET_REPO'] }}/${{ env['RELEASE_TYPE'] }}:${{ env['RELEASE_VERSION'] }}" | |
run: | | |
docker run --rm ${DOCKER_TARGET_REPO}/${RELEASE_TYPE}:${RELEASE_VERSION}-latest /bin/bash -c "source ~/.bashrc" | |
- name: "test xAH_run.py on ${{ env['DOCKER_TARGET_REPO'] }}/${{ env['RELEASE_TYPE'] }}:${{ env['RELEASE_VERSION'] }}" | |
run: | | |
docker run --rm ${DOCKER_TARGET_REPO}/${RELEASE_TYPE}:${RELEASE_VERSION}-latest /bin/bash -c 'source /xAODAnaHelpers_setup.sh; xAH_run.py -h' | |
- name: timestamp the image | |
run: | | |
docker tag ${DOCKER_TARGET_REPO}/${RELEASE_TYPE}:${RELEASE_VERSION}-latest ${DOCKER_TARGET_REPO}/${RELEASE_TYPE}:${RELEASE_VERSION}-${GITHUB_SHA::6}-$(date +%Y%m%d) | |
- name: deploy latest and timestamped for ${{ env['RELEASE'] }} | |
if: success() && github.event_name == 'push' && github.ref == 'refs/heads/main' | |
run: | | |
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD | |
docker push ${DOCKER_TARGET_REPO}/${RELEASE_TYPE}:${RELEASE_VERSION}-${GITHUB_SHA::6}-$(date +%Y%m%d) | |
docker push ${DOCKER_TARGET_REPO}/${RELEASE_TYPE}:${RELEASE_VERSION}-latest | |
env: | |
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | |
docs: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.7] | |
steps: | |
- uses: actions/checkout@master | |
- name: Set up Python 3.7 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install linux dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get -yqq --no-install-suggests --no-install-recommends install doxygen doxygen-doc doxygen-gui doxygen-latex graphviz | |
- name: Install python dependencies | |
run: | | |
python -m pip install --upgrade pip setuptools wheel | |
python -m pip install --ignore-installed -U -q -r docs/requirements.txt | |
pip list | |
- name: Build docs | |
run: | | |
cd docs && make html && cd ../ | |
touch docs/_build/html/.nojekyll | |
- name: Deploy docs to GitHub Pages | |
if: success() && github.event_name == 'push' && github.ref == 'refs/heads/main' | |
uses: crazy-max/ghaction-github-pages@v1.0.1 | |
with: | |
target_branch: gh-pages | |
build_dir: docs/_build/html | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |