File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -77,27 +77,31 @@ jobs:
7777 needs : [build, e2e]
7878 if : ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev' }}
7979 runs-on : ubuntu-latest
80+ permissions :
81+ contents : read
82+ packages : write
8083 steps :
8184 - name : Checkout
8285 uses : actions/checkout@v3
8386
8487 - name : Set up Docker Buildx
8588 uses : docker/setup-buildx-action@v2
8689
87- - name : Login to Docker Hub
90+ - name : Login to GitHub Container Registry
8891 uses : docker/login-action@v2
8992 with :
90- username : ${{ secrets.DOCKERHUB_USERNAME }}
91- password : ${{ secrets.DOCKERHUB_TOKEN }}
93+ registry : ghcr.io
94+ username : ${{ github.actor }}
95+ password : ${{ secrets.GITHUB_TOKEN }}
9296
9397 - name : Docker meta
9498 id : meta
9599 uses : docker/metadata-action@v4
96100 with :
97- images : skohub/skohub-vocabs-docker
101+ images : ghcr.io/${{ github.repository }}
98102 tags : |
99103 # set latest tag for default branch
100- type=raw,value=latest,enable={{is_default_branch}}#
104+ type=raw,value=latest,enable={{is_default_branch}}
101105 type=raw,value=dev,enable=${{ github.ref == format('refs/heads/{0}', 'dev') }}
102106
103107 - name : Build and export to Docker
You can’t perform that action at this time.
0 commit comments