Skip to content

Commit eb11d00

Browse files
committed
support local builds with nektos/act
1 parent fc4c365 commit eb11d00

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ jobs:
6363
SOFTHSM_VERSION: ${{ matrix.SOFTHSM_VERSION }}
6464
TRIVY_GITHUB_TOKEN: ${{ github.token }}
6565
run: |
66-
if [ "$GITHUB_REF" == "refs/heads/main" ]; then
66+
if [[ $GITHUB_REF_NAME == "main" && $ACT != "true" ]]; then
6767
export DOCKER_PUSH=1
68+
echo "$DOCKER_REGISTRY_TOKEN" | docker login -u="$DOCKER_REGISTRY_USERNAME" "$DOCKER_REGISTRY" --password-stdin
6869
fi
69-
echo "$DOCKER_REGISTRY_TOKEN" | docker login -u="$DOCKER_REGISTRY_USERNAME" "$DOCKER_REGISTRY" --password-stdin
7070
bash build-image.sh

0 commit comments

Comments
 (0)