Skip to content

Commit

Permalink
Add CERN registry
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuznet committed Aug 20, 2021
1 parent bd660a8 commit aa76b2f
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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/[email protected]
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/[email protected]
Expand Down

0 comments on commit aa76b2f

Please sign in to comment.