Skip to content

Merge pull request #604 from dynamic-entropy/loadtest-ask-approval #5

Merge pull request #604 from dynamic-entropy/loadtest-ask-approval

Merge pull request #604 from dynamic-entropy/loadtest-ask-approval #5

name: Loadtest Docker Image CI
on:
push:
tags:
- 'loadtest-*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Get tag name
id: tagname
run: echo "tag=${GITHUB_REF#refs/tags/loadtest-}" >> "$GITHUB_ENV"
- name: Login to CERN Harbour
uses: docker/login-action@v2
with:
registry: registry.cern.ch
username: ${{ secrets.HARBOR_USERNAME }}
password: ${{ secrets.HARBOR_TOKEN }}
- name: Build the Docker Image
run: |
cd docker/CMSRucioClient && docker build . \
--file Dockerfile.loadtest \
--tag registry.cern.ch/${{ vars.HARBOR_REPOSITORY }}/rucio-loadtest-client:${{ env.tag }}
- name: Push Image to CERN Harbour
run: docker push registry.cern.ch/${{ vars.HARBOR_REPOSITORY }}/rucio-loadtest-client:${{ env.tag }}