Skip to content

Commit

Permalink
Updated CodeSignTool v1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bayrakmustafa committed Apr 1, 2024
1 parent 8f9935e commit b08e4dd
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 22 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ jobs:
packages: write

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4

- name: Set up Docker Image Name
run: |
echo "DOCKER_TAG=${{ github.ref_name }}" >> $GITHUB_ENV
if: startsWith(github.ref, 'refs/tags/')

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
with:
platforms: linux/amd64,linux/arm64,linux/arm/7
driver-opts: 'image=moby/buildkit:v0.10.5'
Expand All @@ -52,7 +52,7 @@ jobs:
packages: write

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4

- name: Set up Docker Image Name
run: |
Expand All @@ -79,7 +79,7 @@ jobs:
packages: write

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4

- name: Set up Docker Image Name
run: |
Expand Down Expand Up @@ -107,15 +107,15 @@ jobs:
packages: write

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4

- name: Set up Docker Image Name
run: |
echo "LINUX_DOCKER_IMAGE_NAME=ghcr.io/sslcom/codesigner:${{ github.ref_name }}" >> $GITHUB_ENV
if: startsWith(github.ref, 'refs/tags/')

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand Down Expand Up @@ -146,15 +146,15 @@ jobs:
packages: write

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4

- name: Set up Docker Image Name
run: |
echo "WINDOWS_DOCKER_IMAGE_NAME=ghcr.io/sslcom/codesigner-win:${{ github.ref_name }}" >> $GITHUB_ENV
if: startsWith(github.ref, 'refs/tags/')

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand Down Expand Up @@ -187,15 +187,15 @@ jobs:
packages: write

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4

- name: Set up Docker Image Name
run: |
echo "WINDOWS_2019_DOCKER_IMAGE_NAME=ghcr.io/sslcom/codesigner-win2019:${{ github.ref_name }}" >> $GITHUB_ENV
if: startsWith(github.ref, 'refs/tags/')

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ ENV ENVIRONMENT_NAME=PROD
RUN apt update && apt install -y unzip vim wget curl

# Add CodeSignTool
ADD --chown=root:root https://github.com/SSLcom/CodeSignTool/releases/download/v1.2.7/CodeSignTool-v1.2.7.zip /tmp/CodeSignTool-v1.2.7.zip
ADD --chown=root:root https://github.com/SSLcom/CodeSignTool/releases/download/v1.3.0/CodeSignTool-v1.3.0.zip /tmp/CodeSignTool-v1.3.0.zip

RUN unzip "/tmp/CodeSignTool-v1.2.7.zip" -d "/tmp" && mv "/tmp/CodeSignTool-v1.2.7" "/codesign" && \
RUN mkdir -p "/codesign" && unzip "/tmp/CodeSignTool-v1.3.0.zip" -d "/codesign" && \
chmod +x "/codesign/CodeSignTool.sh" && ln -s "/codesign/CodeSignTool.sh" "/usr/bin/codesign"

COPY ./codesign-tool/ /codesign
Expand Down
5 changes: 2 additions & 3 deletions Dockerfile-ltsc2019
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,10 @@ CMD ["jshell"]

# Add CodeSignTool
RUN New-Item -ItemType Directory -Force -Path C:\Setup
RUN Invoke-WebRequest -OutFile C:\Setup\CodeSignTool-v1.2.7.zip "https://www.ssl.com/download/codesigntool-for-windows"
RUN Invoke-WebRequest -OutFile C:\Setup\CodeSignTool-v1.3.0.zip "https://www.ssl.com/download/codesigntool-for-windows"

RUN Expand-Archive -LiteralPath C:\Setup\CodeSignTool-v1.2.7.zip -DestinationPath C:/ -Force
RUN Move-Item -Destination "C:\CodeSignTool" -Path "C:\CodeSignTool-v1.2.7-windows"
RUN New-Item -ItemType Directory -Force -Path C:\CodeSignTool
RUN Expand-Archive -LiteralPath C:\Setup\CodeSignTool-v1.3.0.zip -DestinationPath C:/CodeSignTool -Force

COPY ./codesign-tool C:/CodeSignTool
COPY ./entrypoint.ps1 C:/CodeSignTool/entrypoint.ps1
Expand Down
5 changes: 2 additions & 3 deletions Dockerfile-ltsc2022
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,10 @@ CMD ["jshell"]

# Add CodeSignTool
RUN New-Item -ItemType Directory -Force -Path C:\Setup
RUN Invoke-WebRequest -OutFile C:\Setup\CodeSignTool-v1.2.7.zip "https://www.ssl.com/download/codesigntool-for-windows"
RUN Invoke-WebRequest -OutFile C:\Setup\CodeSignTool-v1.3.0.zip "https://www.ssl.com/download/codesigntool-for-windows"

RUN Expand-Archive -LiteralPath C:\Setup\CodeSignTool-v1.2.7.zip -DestinationPath C:/ -Force
RUN Move-Item -Destination "C:\CodeSignTool" -Path "C:\CodeSignTool-v1.2.7-windows"
RUN New-Item -ItemType Directory -Force -Path C:\CodeSignTool
RUN Expand-Archive -LiteralPath C:\Setup\CodeSignTool-v1.3.0.zip -DestinationPath C:/CodeSignTool -Force

COPY ./codesign-tool C:/CodeSignTool
COPY ./entrypoint.ps1 C:/CodeSignTool/entrypoint.ps1
Expand Down
3 changes: 2 additions & 1 deletion codesign-tool/conf/code_sign_tool.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CLIENT_ID=kaXTRACNijSWsFdRKg_KAfD3fqrBlzMbWs6TwWHwAn8
OAUTH2_ENDPOINT=https://login.ssl.com/oauth2/token
CSC_API_ENDPOINT=https://cs.ssl.com
TSA_URL=http://ts.ssl.com
TSA_URL=http://ts.ssl.com
TSA_LEGACY_URL=http://ts.ssl.com/legacy
3 changes: 2 additions & 1 deletion codesign-tool/conf/code_sign_tool_demo.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CLIENT_ID=qOUeZCCzSqgA93acB3LYq6lBNjgZdiOxQc-KayC3UMw
OAUTH2_ENDPOINT=https://oauth-sandbox.ssl.com/oauth2/token
CSC_API_ENDPOINT=https://cs-try.ssl.com
TSA_URL=http://ts.ssl.com
TSA_URL=http://ts.ssl.com
TSA_LEGACY_URL=http://ts.ssl.com/legacy
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ if [[ ! "${CMD[@]}" =~ .*"--help".* ]]; then
fi

RESULT=$(bash -c "set -e; $COMMAND")
if [[ "$RESULT" =~ .*"Error".* || "$RESULT" =~ .*"Exception".* || "$RESULT" =~ .*"Missing required option".* || $RESULT =~ .*"Unmatched arguments from".* ]]; then
if [[ "$RESULT" =~ .*"Error".* || "$RESULT" =~ .*"Exception".* || "$RESULT" =~ .*"Missing required option".* || $RESULT =~ .*"Unmatched arguments from".* || $RESULT =~ .*"Unmatched argument".* ]]; then
echo "Something Went Wrong. Please try again."
echo "$RESULT"
exit 1
Expand Down

0 comments on commit b08e4dd

Please sign in to comment.