fix: copy command
This commit is contained in:
parent
29ffc1c075
commit
01329fc87c
1 changed files with 6 additions and 6 deletions
12
.github/workflows/build-singbox-docker.yml
vendored
12
.github/workflows/build-singbox-docker.yml
vendored
|
@ -34,26 +34,26 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
if [[ "${{ matrix.buildType }}" == "full" ]]; then
|
if [[ "${{ matrix.buildType }}" == "full" ]]; then
|
||||||
if [[ "${{ matrix.distro }}" == "distroless" ]]; then
|
if [[ "${{ matrix.distro }}" == "distroless" ]]; then
|
||||||
cp "$GITHUB_WORKSPACE/action/dockerfiles/Dockerfile.distroless.full" > Dockerfile
|
cp "$GITHUB_WORKSPACE/action/dockerfiles/Dockerfile.distroless.full" Dockerfile
|
||||||
echo "tag_postfix=full-distroless" >> $GITHUB_OUTPUT
|
echo "tag_postfix=full-distroless" >> $GITHUB_OUTPUT
|
||||||
else
|
else
|
||||||
cp "$GITHUB_WORKSPACE/action/dockerfiles/Dockerfile.full" > Dockerfile
|
cp "$GITHUB_WORKSPACE/action/dockerfiles/Dockerfile.full" Dockerfile
|
||||||
echo "tag_postfix=full" >> $GITHUB_OUTPUT
|
echo "tag_postfix=full" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
elif [[ "${{ matrix.buildType }}" == "minimized" ]]; then
|
elif [[ "${{ matrix.buildType }}" == "minimized" ]]; then
|
||||||
if [[ "${{ matrix.distro }}" == "distroless" ]]; then
|
if [[ "${{ matrix.distro }}" == "distroless" ]]; then
|
||||||
cp "$GITHUB_WORKSPACE/action/dockerfiles/Dockerfile.distroless.minimized" > Dockerfile
|
cp "$GITHUB_WORKSPACE/action/dockerfiles/Dockerfile.distroless.minimized" Dockerfile
|
||||||
echo "tag_postfix=mini-distroless" >> $GITHUB_OUTPUT
|
echo "tag_postfix=mini-distroless" >> $GITHUB_OUTPUT
|
||||||
else
|
else
|
||||||
cp "$GITHUB_WORKSPACE/action/dockerfiles/Dockerfile.minimized" > Dockerfile
|
cp "$GITHUB_WORKSPACE/action/dockerfiles/Dockerfile.minimized" Dockerfile
|
||||||
echo "tag_postfix=mini" >> $GITHUB_OUTPUT
|
echo "tag_postfix=mini" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if [[ "${{ matrix.distro }}" == "distroless" ]]; then
|
if [[ "${{ matrix.distro }}" == "distroless" ]]; then
|
||||||
cp "$GITHUB_WORKSPACE/action/dockerfiles/Dockerfile.distroless.standard" > Dockerfile
|
cp "$GITHUB_WORKSPACE/action/dockerfiles/Dockerfile.distroless.standard" Dockerfile
|
||||||
echo "tag_postfix=distroless" >> $GITHUB_OUTPUT
|
echo "tag_postfix=distroless" >> $GITHUB_OUTPUT
|
||||||
else
|
else
|
||||||
cp "$GITHUB_WORKSPACE/action/dockerfiles/Dockerfile.standard" > Dockerfile
|
cp "$GITHUB_WORKSPACE/action/dockerfiles/Dockerfile.standard" Dockerfile
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
- name: Login to Docker Hub Container Registry
|
- name: Login to Docker Hub Container Registry
|
||||||
|
|
Loading…
Reference in a new issue