tangled
alpha
login
or
join now
evan.jarrett.net
/
at-container-registry
66
fork
atom
A container registry that uses the AT Protocol for manifest storage and S3 for blob storage.
atcr.io
docker
container
atproto
go
66
fork
atom
overview
issues
1
pulls
pipelines
update install scripts
evan.jarrett.net
5 months ago
ef0d830d
386dcb92
verified
This commit was signed with the committer's
known signature
.
evan.jarrett.net
SSH Key Fingerprint:
SHA256:bznk0uVPp7XFOl67P0uTM1pCjf2A4ojeP/lsUE7uauQ=
+20
-35
3 changed files
expand all
collapse all
unified
split
pkg
appview
static
install.ps1
install.sh
scripts
publish-artifact.sh
+9
-16
pkg/appview/static/install.ps1
···
4
$ErrorActionPreference = "Stop"
5
6
# Configuration
7
-
$Repo = "atcr-io/atcr"
8
$BinaryName = "docker-credential-atcr.exe"
9
$InstallDir = if ($env:ATCR_INSTALL_DIR) { $env:ATCR_INSTALL_DIR } else { "$env:ProgramFiles\ATCR" }
0
0
0
10
11
Write-Host "ATCR Credential Helper Installer for Windows" -ForegroundColor Green
12
Write-Host ""
···
27
$Arch = Get-Architecture
28
Write-Host "Detected: Windows $Arch" -ForegroundColor Green
29
30
-
# Get latest release version
31
-
function Get-LatestVersion {
32
-
Write-Host "Fetching latest version..." -ForegroundColor Yellow
33
-
$releaseUrl = "https://api.github.com/repos/$Repo/releases/latest"
34
35
-
try {
36
-
$release = Invoke-RestMethod -Uri $releaseUrl -UseBasicParsing
37
-
return $release.tag_name
38
-
} catch {
39
-
Write-Host "Failed to fetch latest version: $_" -ForegroundColor Red
40
-
exit 1
41
-
}
42
}
43
-
44
-
$Version = if ($env:ATCR_VERSION) { $env:ATCR_VERSION } else { Get-LatestVersion }
45
-
Write-Host "Latest version: $Version" -ForegroundColor Green
46
47
# Download and install binary
48
function Install-Binary {
···
53
54
$versionClean = $Version.TrimStart('v')
55
$fileName = "docker-credential-atcr_${versionClean}_Windows_${Arch}.zip"
56
-
$downloadUrl = "https://github.com/$Repo/releases/download/$Version/$fileName"
57
58
Write-Host "Downloading from: $downloadUrl" -ForegroundColor Yellow
59
···
4
$ErrorActionPreference = "Stop"
5
6
# Configuration
0
7
$BinaryName = "docker-credential-atcr.exe"
8
$InstallDir = if ($env:ATCR_INSTALL_DIR) { $env:ATCR_INSTALL_DIR } else { "$env:ProgramFiles\ATCR" }
9
+
$Version = "v0.0.1"
10
+
$TagHash = "c6cfbaf1723123907f9d23e300f6f72081e65006"
11
+
$TangledRepo = "https://tangled.org/@evan.jarrett.net/at-container-registry"
12
13
Write-Host "ATCR Credential Helper Installer for Windows" -ForegroundColor Green
14
Write-Host ""
···
29
$Arch = Get-Architecture
30
Write-Host "Detected: Windows $Arch" -ForegroundColor Green
31
0
0
0
0
32
33
+
if ($env:ATCR_VERSION) {
34
+
$Version = $env:ATCR_VERSION
35
+
Write-Host "Using specified version: $Version" -ForegroundColor Yellow
36
+
} else {
37
+
Write-Host "Using version: $Version" -ForegroundColor Green
0
0
38
}
0
0
0
39
40
# Download and install binary
41
function Install-Binary {
···
46
47
$versionClean = $Version.TrimStart('v')
48
$fileName = "docker-credential-atcr_${versionClean}_Windows_${Arch}.zip"
49
+
$downloadUrl = "$TangledRepo/tags/$TagHash/download/$fileName"
50
51
Write-Host "Downloading from: $downloadUrl" -ForegroundColor Yellow
52
+8
-18
pkg/appview/static/install.sh
···
11
NC='\033[0m' # No Color
12
13
# Configuration
14
-
REPO="atcr-io/atcr"
15
BINARY_NAME="docker-credential-atcr"
16
INSTALL_DIR="${INSTALL_DIR:-/usr/local/bin}"
0
0
0
17
18
# Detect OS and architecture
19
detect_platform() {
···
47
esac
48
}
49
50
-
# Get latest release version
51
-
get_latest_version() {
52
-
echo -e "${YELLOW}Fetching latest version...${NC}"
53
-
LATEST_VERSION=$(curl -fsSL "https://api.github.com/repos/${REPO}/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
54
-
55
-
if [ -z "$LATEST_VERSION" ]; then
56
-
echo -e "${RED}Failed to fetch latest version${NC}"
57
-
exit 1
58
-
fi
59
-
60
-
echo -e "${GREEN}Latest version: ${LATEST_VERSION}${NC}"
61
-
}
62
63
# Download and install binary
64
install_binary() {
65
-
local version="${1:-$LATEST_VERSION}"
66
-
local download_url="https://github.com/${REPO}/releases/download/${version}/docker-credential-atcr_${version#v}_${OS}_${ARCH}.tar.gz"
67
68
echo -e "${YELLOW}Downloading from: ${download_url}${NC}"
69
···
135
136
# Allow specifying version via environment variable
137
if [ -z "$ATCR_VERSION" ]; then
138
-
get_latest_version
139
else
140
-
LATEST_VERSION="$ATCR_VERSION"
141
-
echo -e "Using specified version: ${GREEN}${LATEST_VERSION}${NC}"
142
fi
143
144
install_binary
···
11
NC='\033[0m' # No Color
12
13
# Configuration
0
14
BINARY_NAME="docker-credential-atcr"
15
INSTALL_DIR="${INSTALL_DIR:-/usr/local/bin}"
16
+
VERSION="v0.0.1"
17
+
TAG_HASH="c6cfbaf1723123907f9d23e300f6f72081e65006"
18
+
TANGLED_REPO="https://tangled.org/@evan.jarrett.net/at-container-registry"
19
20
# Detect OS and architecture
21
detect_platform() {
···
49
esac
50
}
51
0
0
0
0
0
0
0
0
0
0
0
0
52
53
# Download and install binary
54
install_binary() {
55
+
local version="${1:-$VERSION}"
56
+
local download_url="${TANGLED_REPO}/tags/${TAG_HASH}/download/docker-credential-atcr_${version#v}_${OS}_${ARCH}.tar.gz"
57
58
echo -e "${YELLOW}Downloading from: ${download_url}${NC}"
59
···
125
126
# Allow specifying version via environment variable
127
if [ -z "$ATCR_VERSION" ]; then
128
+
echo -e "Using version: ${GREEN}${VERSION}${NC}"
129
else
130
+
VERSION="$ATCR_VERSION"
131
+
echo -e "Using specified version: ${GREEN}${VERSION}${NC}"
132
fi
133
134
install_binary
+3
-1
scripts/publish-artifact.sh
···
15
}') &&
16
echo "$ARTIFACT_JSON" > temp_artifact.json &&
17
cat temp_artifact.json &&
18
-
goat record create temp_artifact.json -n
0
0
···
15
}') &&
16
echo "$ARTIFACT_JSON" > temp_artifact.json &&
17
cat temp_artifact.json &&
18
+
goat record create temp_artifact.json -n
19
+
rm temp_artifact.json
20
+
sleep 2