From 071a7860918796a39b75a0369935a4d0b3e8d11d Mon Sep 17 00:00:00 2001 From: Valentin Kuznetsov Date: Mon, 23 Aug 2021 13:51:22 -0400 Subject: [PATCH] Add CERN registry workflows --- .github/workflows/build.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0b24ee6..14656d0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -64,6 +64,23 @@ jobs: - name: Build image run: | docker build . --tag docker.pkg.github.com/dmwm/rucio-tracers + docker tag docker.pkg.github.com/dmwm/rucio-tracers/rucio-tracers registry.cern.ch/cmsweb/rucio-tracers + + - name: Login to registry.cern.ch + uses: docker/login-action@v1.6.0 + with: + registry: registry.cern.ch + username: ${{ secrets.CERN_LOGIN }} + password: ${{ secrets.CERN_TOKEN }} + + - name: Publish image to registry.cern.ch + uses: docker/build-push-action@v1 + with: + username: ${{ secrets.CERN_LOGIN }} + password: ${{ secrets.CERN_TOKEN }} + registry: registry.cern.ch + repository: cmsweb/rucio-tracers + tag_with_ref: true - name: Login to docker github registry uses: docker/login-action@v1.6.0