Merge pull request #8 from eachristgr/prometheus #3
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: CMS Consistency Check Docker Image CI | |
on: | |
push: | |
tags: | |
- 'release-*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Get tag name | |
id: tagname | |
run: echo "tag=${GITHUB_REF#refs/tags/}" >> "$GITHUB_ENV" | |
- name: Login to CERN Harbour | |
uses: docker/login-action@v3 | |
with: | |
registry: registry.cern.ch | |
username: ${{ secrets.HARBOR_USERNAME }} | |
password: ${{ secrets.HARBOR_TOKEN }} | |
- name: Build the Docker Image | |
run: | | |
cd docker && docker build . \ | |
--tag registry.cern.ch/${{ vars.HARBOR_REPOSITORY }}/rucio-consistency:${{ env.tag }} | |
- name: Push Image to CERN Harbour | |
run: docker push registry.cern.ch/${{ vars.HARBOR_REPOSITORY }}/rucio-consistency:${{ env.tag }} |