Merge pull request #604 from dynamic-entropy/loadtest-ask-approval #5
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: 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 }} | |