2023-09-14 19:41:32 +00:00
|
|
|
steps:
|
|
|
|
build-static:
|
2023-09-13 21:59:43 +00:00
|
|
|
image: "node:20"
|
2023-09-13 21:55:50 +00:00
|
|
|
commands:
|
2023-09-14 19:48:24 +00:00
|
|
|
- npm install
|
2023-09-14 19:41:32 +00:00
|
|
|
- npm run build
|
|
|
|
build-docker:
|
2023-09-14 19:57:53 +00:00
|
|
|
image: "docker:24.0.6-dind-rootless"
|
2023-09-14 19:41:32 +00:00
|
|
|
commands:
|
2023-09-14 19:54:55 +00:00
|
|
|
- docker build -t docker.grondek.pl/react-homepage:0.1 .
|
|
|
|
# - docker buildx build --platform linux/arm64,linux/amd64 --push -t docker.grondek.pl/react-homepage:0.1 .
|
2023-09-14 19:41:32 +00:00
|
|
|
# when:
|
|
|
|
# - branch: [ master, main ]
|