diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..22d811c --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,36 @@ +pipeline: + build: + image: node:alpine + commands: + - npm install + - npm run build + when: + path: ['src/*', 'public/*', '*.js', '*.html', 'package.json'] + event: ['push', 'pull_request'] + + docker: + image: woodpeckerci/plugin + settings: + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm/v8 + repo: codeberg.org/${CI_REPO} + registry: codeberg.org + tags: latest + username: ${CI_REPO_OWNER} + password: + from_secret: cb_token + when: + branch: main + path: ['src/*', 'public/*', '*.js', '*.html', '*.yml', 'Dockerfile'] + event: ['push'] + + deploy: + image: node:alpine + commands: + - npm install surge + - cp dist/index.html dist/200.html + - npx surge ./dist hyperpipe.surge.sh + secrets: [surge_login, surge_token] + when: + branch: main + path: ['src/*', 'public/*', '*.js', '*.html', 'package.json'] + event: ['push'] diff --git a/.woodpecker/surge.yml b/.woodpecker/surge.yml deleted file mode 100644 index 1dc1c63..0000000 --- a/.woodpecker/surge.yml +++ /dev/null @@ -1,19 +0,0 @@ -pipeline: - build: - image: node:alpine - commands: - - npm install - - npm run build - when: - event: [push, pull_request] - - deploy: - image: node:alpine - commands: - - npm install surge - - cp dist/index.html dist/200.html - - npx surge ./dist hyperpipe.surge.sh - secrets: [surge_login, surge_token] - when: - branch: main - event: push diff --git a/src/assets/version.json b/src/assets/version.json index b405197..1bedf09 100644 --- a/src/assets/version.json +++ b/src/assets/version.json @@ -1,3 +1,3 @@ { - "date": "2022-12-10" + "date": "2022-12-13" } diff --git a/src/components/SearchBar.vue b/src/components/SearchBar.vue index 9ac5469..bc7cafa 100644 --- a/src/components/SearchBar.vue +++ b/src/components/SearchBar.vue @@ -10,7 +10,6 @@ function search(e) { nav.state.search = e.target.value; nav.state.page = 'home'; e.target.blur(); - console.log(e); }