fix: copy command

This commit is contained in:
Evans Mike 2023-05-05 12:29:11 +01:00
parent 29ffc1c075
commit 01329fc87c

View file

@ -34,26 +34,26 @@ jobs:
run: |
if [[ "${{ matrix.buildType }}" == "full" ]]; 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
else
cp "$GITHUB_WORKSPACE/action/dockerfiles/Dockerfile.full" > Dockerfile
cp "$GITHUB_WORKSPACE/action/dockerfiles/Dockerfile.full" Dockerfile
echo "tag_postfix=full" >> $GITHUB_OUTPUT
fi
elif [[ "${{ matrix.buildType }}" == "minimized" ]]; 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
else
cp "$GITHUB_WORKSPACE/action/dockerfiles/Dockerfile.minimized" > Dockerfile
cp "$GITHUB_WORKSPACE/action/dockerfiles/Dockerfile.minimized" Dockerfile
echo "tag_postfix=mini" >> $GITHUB_OUTPUT
fi
else
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
else
cp "$GITHUB_WORKSPACE/action/dockerfiles/Dockerfile.standard" > Dockerfile
cp "$GITHUB_WORKSPACE/action/dockerfiles/Dockerfile.standard" Dockerfile
fi
fi
- name: Login to Docker Hub Container Registry