From aa76b2fbd331165a9db30c2d7825672912e811ba Mon Sep 17 00:00:00 2001 From: Valentin Kuznetsov Date: Fri, 20 Aug 2021 09:14:10 -0400 Subject: [PATCH] Add CERN registry --- .github/workflows/build.yml | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8a46fe1..7234c05 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,19 +20,6 @@ jobs: - name: Check out code into the Go module directory uses: actions/checkout@v2 - - name: Get dependencies - run: | - go get github.com/dmwm/cmsauth - go get github.com/dmwm/das2go - go get github.com/vkuznet/x509proxy - go get github.com/pkg/profile - go get github.com/stretchr/testify - go get github.com/vkuznet/dcr - go get gopkg.in/mgo.v2 - go get github.com/shirou/gopsutil - go get github.com/divan/expvarmon - go get github.com/lestrrat-go/file-rotatelogs - - name: Build run: | make @@ -73,6 +60,23 @@ jobs: sed -i -e "s,ENV TAG=.*,ENV TAG=${{steps.get-ref.outputs.tag}},g" Dockerfile chmod +x run.sh docker build . --tag docker.pkg.github.com/dmwm/das2go/das2go + docker tag docker.pkg.github.com/dmwm/das2go/das2go registry.cern.ch/cmsweb/das2go + + - 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/das2go + tag_with_ref: true - name: Login to Registry uses: docker/login-action@v1.6.0