A container registry that uses the AT Protocol for manifest storage and S3 for blob storage.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

try and push images to atcr.io

+44 -10
+44 -10
.tangled/workflows/release.yml
··· 2 2 # Triggers on version tags and builds cross-platform binaries using GoReleaser 3 3 4 4 when: 5 - - event: ["manual"] 5 + - event: ["push", "manual"] 6 6 # TODO: Trigger only on version tags (v1.0.0, v2.1.3, etc.) 7 7 branch: ["main"] 8 8 ··· 12 12 nixpkgs: 13 13 - git 14 14 - go 15 - - goreleaser 15 + #- goreleaser 16 + - docker 16 17 17 18 steps: 18 19 - name: Fetch git tags 19 20 command: git fetch --tags --force 20 21 21 - - name: Checkout latest tag 22 - command: git checkout $(git tag --sort=-version:refname | head -n1) 22 + - name: Checkout tag for current commit 23 + command: | 24 + CURRENT_COMMIT=$(git rev-parse HEAD) 25 + export TAG=$(git tag --points-at $CURRENT_COMMIT --sort=-version:refname | head -n1) 26 + if [ -z "$TAG" ]; then 27 + echo "Error: No tag found for commit $CURRENT_COMMIT" 28 + exit 1 29 + fi 30 + echo "Found tag $TAG for commit $CURRENT_COMMIT" 31 + echo "TAG=$TAG" >> $GITHUB_ENV || true 32 + git checkout $TAG 23 33 24 - - name: Tidy Go modules 25 - command: go mod tidy 34 + - name: Login to atcr.io 35 + command: docker login atcr.io -u evan.jarrett.net -p ${APP_PASSWORD} 26 36 27 - - name: Install Goat 28 - command: go install github.com/bluesky-social/goat@latest 37 + - name: Build AppView Docker image 38 + command: | 39 + TAG=$(git describe --tags --exact-match 2>/dev/null || git tag --points-at HEAD | head -n1) 40 + docker build -f Dockerfile.appview -t atcr.io/evan.jarrett.net/atcr-appview:${TAG} . 29 41 30 - - name: Run GoReleaser 31 - command: goreleaser release --clean 42 + - name: Build Hold Docker image 43 + command: | 44 + TAG=$(git describe --tags --exact-match 2>/dev/null || git tag --points-at HEAD | head -n1) 45 + docker build -f Dockerfile.hold -t atcr.io/evan.jarrett.net/atcr-hold:${TAG} . 46 + 47 + - name: Push AppView Docker image 48 + command: | 49 + TAG=$(git describe --tags --exact-match 2>/dev/null || git tag --points-at HEAD | head -n1) 50 + docker push atcr.io/evan.jarrett.net/atcr-appview:${TAG} 51 + 52 + - name: Push Hold Docker image 53 + command: | 54 + TAG=$(git describe --tags --exact-match 2>/dev/null || git tag --points-at HEAD | head -n1) 55 + docker push atcr.io/evan.jarrett.net/atcr-hold:${TAG} 56 + 57 + # disable for now 58 + # - name: Tidy Go modules 59 + # command: go mod tidy 60 + 61 + # - name: Install Goat 62 + # command: go install github.com/bluesky-social/goat@latest 63 + 64 + # - name: Run GoReleaser 65 + # command: goreleaser release --clean