Update woodpecker.yml and add test change to landing page

This commit is contained in:
Keannu Bernasol 2023-12-04 20:12:41 +08:00
parent 8add5863b4
commit d882a24064
2 changed files with 5 additions and 8 deletions

View file

@ -1,17 +1,14 @@
# .woodpecker.yml
steps:
- name: build
image: node:18
commands:
- npm install
- npm run build
- name: copy
image: alpine
- name: build & copy
image: node:18-alpine
commands:
- apk add --no-cache openssh-client
- mkdir -p /root/.ssh/
- echo "$SSH_KEY" | tr -d '\r' > /root/.ssh/id_rsa
- chmod 600 /root/.ssh/id_rsa
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > /root/.ssh/config
- npm install
- npm run build
- scp -r dist/* root@10.0.10.4:/mnt/sda1/files/projects/equipment_tracker_frontend
secrets: [SSH_KEY]

View file

@ -65,7 +65,7 @@ export default function LandingPage() {
<p style={{ ...styles.text_dark, ...styles.text_L }}>
CITC EQUIPMENT
<br />
TRACKER
TRACKER TEST
</p>
<div style={{ ...styles.flex_column }}>
<Button