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

View file

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