Skip to content

Commit 5e239df

Browse files
authored
build: use built-in GITHUB_TOKEN (#21)
1 parent baa1553 commit 5e239df

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,16 @@ jobs:
4545
sudo snap install yq
4646
./build.sh -v ${{ matrix.version }} -l
4747
DDEV_VERSION=${{ matrix.version }} bash bats tests
48+
-
49+
name: Login to GitHub Container Registry
50+
uses: docker/login-action@v3
51+
with:
52+
registry: ghcr.io
53+
username: ${{ github.actor }}
54+
password: ${{ secrets.GITHUB_TOKEN }}
4855
-
4956
name: "Build ddev ${{ matrix.version }} multi-arch image"
5057
shell: 'script -q -e -c "bash {0}"'
5158
run: |
52-
echo "${{ secrets.GHCR_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
5359
docker buildx create --use --platform=linux/arm64,linux/amd64
5460
./build.sh -v ${{ matrix.version }} -x -p

0 commit comments

Comments
 (0)