Skip to content

Commit befecbc

Browse files
committed
remove unused task
1 parent 7442c09 commit befecbc

File tree

1 file changed

+0
-41
lines changed

1 file changed

+0
-41
lines changed

Taskfile.yml

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ vars:
1212
RUNNER_VERSION: "0.5.0"
1313
VERSION: # if version is not passed we hack the semver by encoding the commit as pre-release
1414
sh: echo "${VERSION:-0.0.0-$(git rev-parse --short HEAD)}"
15-
NEW_PACKAGE:
16-
sh: ls -1 ./build/arduino-app-cli_*.deb 2>/dev/null | head -n 1
17-
GITHUB_TOKEN_FILE: ./github_token.txt
1815

1916
tasks:
2017
init:
@@ -127,44 +124,6 @@ tasks:
127124
echo "Examples successfully cloned."
128125
silent: false
129126

130-
build-image:
131-
desc: "Builds the mock-repo Docker image (requires GITHUB_TOKEN_FILE)"
132-
deps: [build-deb]
133-
vars:
134-
PKG_PATH: "{{.NEW_PACKAGE}}"
135-
cmds:
136-
# --- MODIFIED ---
137-
# Check for both the package and the token file
138-
- |
139-
if [ ! -f "{{.GITHUB_TOKEN_FILE}}" ]; then
140-
echo "Error: GitHub token file not found at {{.GITHUB_TOKEN_FILE}}"
141-
echo "Please create this file and add your GitHub PAT to it."
142-
exit 1
143-
fi
144-
- |
145-
echo "Using package: {{.PKG_PATH}}"
146-
echo "Using GitHub token from: {{.GITHUB_TOKEN_FILE}}"
147-
148-
# Enable BuildKit and pass the secret
149-
DOCKER_BUILDKIT=1 docker build \
150-
--secret id=github_token,src={{.GITHUB_TOKEN_FILE}} \
151-
--build-arg NEW_PACKAGE_PATH={{.PKG_PATH}} \
152-
-t newdeb \
153-
-f test.Dockerfile .
154-
status:
155-
- '[[ -f "{{.PKG_PATH}}" ]]'
156-
- '[[ -f "{{.DOCKERFILE_NAME}}" ]]'
157-
# Re-build if token file changes
158-
- '[[ -f "{{.GITHUB_TOKEN_FILE}}" ]]'
159-
160-
test-deb:
161-
desc: Test the debian package locally
162-
deps:
163-
- build-deb
164-
cmds:
165-
- docker build --no-cache -t mock-apt-repo -f test.Dockerfile .
166-
- docker run --rm -it --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro --name apt-test-update mock-apt-repo
167-
168127
arduino-app-cli:build:local:
169128
desc: "Build the arduino-app-cli locally"
170129
cmds:

0 commit comments

Comments
 (0)