Skip to content

Commit 8eeec25

Browse files
authored
Upload GRR image to GitHub container registry instead of DockerHub. (#1026)
1 parent 465be61 commit 8eeec25

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ env:
44
GCS_BUCKET: autobuilds.grr-response.com
55
GCS_BUCKET_OPENAPI: autobuilds-grr-openapi
66
GCS_LATEST_PATH: _latest_server_deb
7-
DOCKER_REPOSITORY: grrdocker/grr
7+
DOCKER_REPOSITORY: ghcr.io/google/grr
88
jobs:
99

1010
test-ubuntu:
@@ -259,13 +259,14 @@ jobs:
259259
export BRANCH=$(echo $GITHUB_REF | cut -d'/' -f 3)
260260
./appveyor/docker_build/build_docker_image.sh
261261
- if: ${{ github.event_name == 'push' }}
262-
name: Log in to Docker Hub
262+
name: Login to GitHub Container registry
263263
uses: docker/login-action@v2
264264
with:
265-
username: ${{ secrets.DOCKER_USERNAME }}
266-
password: ${{ secrets.DOCKER_PASSWORD }}
265+
registry: ghcr.io
266+
username: ${{ github.actor }}
267+
password: ${{ secrets.GITHUB_TOKEN }}
267268
- if: ${{ github.event_name == 'push' }}
268-
name: Push to ${{ env.DOCKER_REPOSITORY }}
269+
name: Push to GitHub Container registry
269270
run: |
270271
docker push -a ${{ env.DOCKER_REPOSITORY }}
271272
upload:

0 commit comments

Comments
 (0)