Skip to content

Commit 928313c

Browse files
authored
Fix credentials
1 parent f1325ee commit 928313c

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/docker-image.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,14 @@ jobs:
2222

2323
- name: Build & push container to Docker Hub
2424
env:
25-
# set these in your repo secrets
26-
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
27-
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
25+
DOTNET_CONTAINER_REGISTRY_UNAME: ${{ secrets.DOCKER_USERNAME }}
26+
DOTNET_CONTAINER_REGISTRY_PWORD: ${{ secrets.DOCKER_PASSWORD }}
2827
run: |
2928
dotnet publish "src/BF2WebAdmin.Server/BF2WebAdmin.Server.csproj" \
3029
-c Release \
3130
-t:PublishContainer \
3231
-p:RuntimeIdentifier=linux-x64 \
3332
-p:ContainerRegistry=docker.io \
3433
-p:ContainerRepository=nihlen/bf2-webadmin \
35-
-p:ContainerImageTags='"latest;${{ github.sha }}"'
34+
-p:ContainerImageTags='"latest;sha-${{ github.sha }}"'
3635
--no-self-contained

0 commit comments

Comments
 (0)