Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Commit a9e4314

Browse files
committed
ci/cd: fix build
1 parent c569031 commit a9e4314

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/build-release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ jobs:
128128
./cmd/agent
129129
130130
- name: Upload artifacts
131-
uses: actions/upload-artifact@v3
131+
uses: actions/upload-artifact@v4
132132
with:
133133
name: ${{ env.BINARY_NAME }}-${{ matrix.platform }}
134134
path: bin/${{ env.BINARY_NAME }}-${{ matrix.platform }}${{ matrix.extension }}
@@ -146,12 +146,12 @@ jobs:
146146
- name: Set up Docker Buildx
147147
uses: docker/setup-buildx-action@v3
148148

149-
- name: Log in to Docker Hub
150-
if: github.event_name != 'pull_request'
149+
- name: Log in to GitHub Container Registry
151150
uses: docker/login-action@v3
152151
with:
153-
username: ${{ secrets.DOCKER_USERNAME }}
154-
password: ${{ secrets.DOCKER_PASSWORD }}
152+
registry: ghcr.io
153+
username: ${{ github.actor }}
154+
password: ${{ secrets.GITHUB_TOKEN }}
155155

156156
- name: Extract metadata
157157
id: meta
@@ -168,7 +168,7 @@ jobs:
168168
type=sha
169169
170170
- name: Build and push Docker image
171-
uses: docker/build-push-action@v5
171+
uses: docker/build-push-action@v6
172172
with:
173173
context: .
174174
platforms: linux/amd64,linux/arm64

0 commit comments

Comments
 (0)