Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
xensik committed Feb 7, 2025
1 parent 55ce48d commit 29163ba
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,8 @@ jobs:

- name: Compress Binaries
run: |
rm -rf build/ include/
for dir in */; do
if [[ $dir == *"windows"* ]]; then
cd "$dir" && zip -r "../${dir%/}.zip" . && cd ..
Expand All @@ -256,10 +258,8 @@ jobs:
# with:
# cosign-release: 'v2.1.1'

# - name: Setup QEMU
# uses: docker/[email protected]
# with:
# platforms: linux/amd64,linux/arm64
- name: Setup QEMU
uses: docker/[email protected]

- name: Setup Docker Buildx
uses: docker/[email protected]
Expand Down Expand Up @@ -292,19 +292,19 @@ jobs:
uses: docker/[email protected]
with:
context: .
platforms: linux/amd64
push: true
platforms: linux/amd64,linux/arm64
push: false
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Update DockerHub Information
uses: peter-evans/dockerhub-description@v4
with:
repository: xensik/gsc-tool
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
# - name: Update DockerHub Information
# uses: peter-evans/dockerhub-description@v4
# with:
# repository: xensik/gsc-tool
# username: ${{ secrets.DOCKERHUB_USER }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}

# - name: Sign the published Docker image
# env:
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM ubuntu:24.04
ARG TARGETARCH

COPY --chmod=755 ./linux-x64-release/gsc-tool /usr/local/bin/
COPY --chmod=755 ./linux-${TARGETARCH}-release/gsc-tool /usr/local/bin/

RUN groupadd gsc-tool && useradd -r -g gsc-tool gsc-tool
USER gsc-tool
Expand Down

0 comments on commit 29163ba

Please sign in to comment.