···1717 - goreleaser # For building multi-platform binaries
1818 - curl # Required by go generate for downloading vendor assets
1919 - gnugrep # Required for tag detection
2020+ - gnutar # Required for creating tarballs
2121+ - gzip # Required for compressing tarballs
2222+ - coreutils # Required for sha256sum
2023 # - goat # TODO: Add goat CLI for uploading to Tangled (if available in nixpkgs)
21242225environment:
···73767477 cd dist
75787676- # Create tarballs for each platform (GoReleaser might already do this)
7979+ # Create tarballs for each platform
8080+ # GoReleaser creates directories like: credential-helper_{os}_{arch}_v{goversion}
8181+7782 # Darwin x86_64
7878- if [ -d "docker-credential-atcr_darwin_amd64_v1" ]; then
8383+ if [ -d "credential-helper_darwin_amd64_v1" ]; then
7984 tar czf "docker-credential-atcr_${VERSION_NO_V}_Darwin_x86_64.tar.gz" \
8080- -C docker-credential-atcr_darwin_amd64_v1 docker-credential-atcr
8585+ -C credential-helper_darwin_amd64_v1 docker-credential-atcr
8186 fi
82878388 # Darwin arm64
8484- if [ -d "docker-credential-atcr_darwin_arm64" ]; then
8585- tar czf "docker-credential-atcr_${VERSION_NO_V}_Darwin_arm64.tar.gz" \
8686- -C docker-credential-atcr_darwin_arm64 docker-credential-atcr
8787- fi
8989+ for dir in credential-helper_darwin_arm64*; do
9090+ if [ -d "$dir" ]; then
9191+ tar czf "docker-credential-atcr_${VERSION_NO_V}_Darwin_arm64.tar.gz" \
9292+ -C "$dir" docker-credential-atcr
9393+ break
9494+ fi
9595+ done
88968997 # Linux x86_64
9090- if [ -d "docker-credential-atcr_linux_amd64_v1" ]; then
9898+ if [ -d "credential-helper_linux_amd64_v1" ]; then
9199 tar czf "docker-credential-atcr_${VERSION_NO_V}_Linux_x86_64.tar.gz" \
9292- -C docker-credential-atcr_linux_amd64_v1 docker-credential-atcr
100100+ -C credential-helper_linux_amd64_v1 docker-credential-atcr
93101 fi
9410295103 # Linux arm64
9696- if [ -d "docker-credential-atcr_linux_arm64" ]; then
9797- tar czf "docker-credential-atcr_${VERSION_NO_V}_Linux_arm64.tar.gz" \
9898- -C docker-credential-atcr_linux_arm64 docker-credential-atcr
9999- fi
104104+ for dir in credential-helper_linux_arm64*; do
105105+ if [ -d "$dir" ]; then
106106+ tar czf "docker-credential-atcr_${VERSION_NO_V}_Linux_arm64.tar.gz" \
107107+ -C "$dir" docker-credential-atcr
108108+ break
109109+ fi
110110+ done
100111101112 echo "Created tarballs:"
102102- ls -lh *.tar.gz
113113+ ls -lh *.tar.gz 2>/dev/null || echo "No tarballs created"
103114104115 - name: Upload to Tangled.org
105116 command: |