Skip to content

Commit

Permalink
chore: use iex instead of Invoke-Expression
Browse files Browse the repository at this point in the history
Signed-off-by: Ilham Syahid S <[email protected]>
  • Loading branch information
ilhamsyahids committed Mar 27, 2024
1 parent 8856765 commit 2565828
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/infras/windows/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ RUN Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointMa
# Install Multiple Go Versions
ARG GO_VERSIONS
COPY ./test/infras/windows/install_go.ps1 /test/infras/windows/
RUN Set-ExecutionPolicy Bypass -Scope Process -Force; /test/infras/windows/install_go.ps1 | Invoke-Expression
RUN Set-ExecutionPolicy Bypass -Scope Process -Force; iex /test/infras/windows/install_go.ps1

# Install dependencies
COPY go.mod go.sum /
RUN go mod download -x

# Copy entrypoint
COPY ./test/infras/windows/entrypoint.ps1 /test/infras/windows/
RUN Set-ExecutionPolicy Bypass -Scope Process -Force; /test/infras/windows/entrypoint.ps1 | Invoke-Expression
RUN Set-ExecutionPolicy Bypass -Scope Process -Force; iex /test/infras/windows/entrypoint.ps1

ENV GO_VERSIONS=$GO_VERSIONS

COPY . .

ENTRYPOINT [ "powershell", "/test/infras/windows/entrypoint.ps1" ]
ENTRYPOINT [ "iex", "/test/infras/windows/entrypoint.ps1" ]

0 comments on commit 2565828

Please sign in to comment.