Self-hosted fleet management platform for Linux
0
fork

Configure Feed

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

fix(ci): use kaniko for builds

+20 -12
+20 -12
.tangled/workflows/push-docker.yaml
··· 8 8 9 9 dependencies: 10 10 nixpkgs: 11 - - podman 11 + - kaniko 12 12 13 13 environment: 14 + DOCKER_CONFIG: /kaniko/.docker 14 15 ATCR_REPO: atcr.io/hayden.moe/lucidd 15 16 16 17 steps: 17 - - name: Create podman config 18 + - name: Configure Kaniko 18 19 command: | 19 - mkdir -p ~/.config/containers 20 - echo "unqualified-search-registries = [\"docker.io\"]" >> ~/.config/containers/registries.conf 20 + mkdir -p /kaniko/.docker/ 21 + echo "{ 22 + \"auths\": { 23 + \"https://atcr.io/v1\":{ 24 + \"auth\": \"$ATCR_CREDENTIALS\" 25 + } 26 + } 27 + }" > /kaniko/.docker/config.json 21 28 22 29 - name: Build image 23 30 command: | 24 - podman build . -t lucidd:latest -t "lucidd:$TANGLED_COMMIT_SHA" -t "lucidd:$TANGLED_REF_NAME" 25 - 26 - - name: Publish image 27 - command: | 28 - podman push --creds "$ATCR_USERNAME:$ATCR_PASSWORD" lucidd:latest "$ATCR_REPO:latest" 29 - podman push --creds "$ATCR_USERNAME:$ATCR_PASSWORD" "lucidd:$TANGLED_REF_NAME" "$ATCR_REPO:$TANGLED_REF_NAME" 30 - podman push --creds "$ATCR_USERNAME:$ATCR_PASSWORD" "lucidd:$TANGLED_COMMIT_SHA" "$ATCR_REPO:$TANGLED_COMMIT_SHA" 31 - 31 + executor \ 32 + --context=$(pwd) \ 33 + --ignore-path=$(pwd) \ 34 + --dockerfile=$(pwd)/Dockerfile \ 35 + --destination="$ATCR_REPO:latest" \ 36 + --destination="$ATCR_REPO:$TANGLED_REF_NAME" \ 37 + --destination="$ATCR_REPO:$TANGLED_COMMIT_SHA" \ 38 + --push-retry=3 \ 39 + --skip-push-permission-check