Skip to content

Commit a815a93

Browse files
committed
Use github container registry
1 parent d318516 commit a815a93

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

.github/workflows/build-images.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ env:
88
DOCKER_BUILDKIT: 1
99

1010
permissions:
11+
packages: write
1112
contents: read
1213

1314
jobs:
@@ -17,20 +18,13 @@ jobs:
1718
steps:
1819

1920
- uses: actions/checkout@v4
20-
21-
- name: Login to docker.elastic.co
22-
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
23-
with:
24-
registry: ${{ secrets.ELASTIC_DOCKER_REGISTRY }}
25-
username: ${{ secrets.ELASTIC_DOCKER_USERNAME }}
26-
password: ${{ secrets.ELASTIC_DOCKER_PASSWORD }}
2721

28-
- name: Login to dockerhub
22+
- name: Login to ghcr.io
2923
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
3024
with:
31-
registry: ${{ secrets.DOCKERHUB_REGISTRY }}
32-
username: ${{ secrets.DOCKERHUB_USERNAME }}
33-
password: ${{ secrets.DOCKERHUB_PASSWORD }}
25+
registry: ghcr.io
26+
username: ${{ github.actor }}
27+
password: ${{ secrets.GITHUB_TOKEN }}
3428

3529
- run: ./util.sh --action build
3630
working-directory: .ci/docker

0 commit comments

Comments
 (0)