23 lines
597 B
YAML
23 lines
597 B
YAML
steps:
|
|
build-static:
|
|
image: "node:20"
|
|
commands:
|
|
- npm install
|
|
- npm run build
|
|
build-docker:
|
|
image: plugins/docker
|
|
settings:
|
|
repo: docker.grondek.pl/react-homepage
|
|
tags: 0.1
|
|
# build-docker:
|
|
# image: docker
|
|
## image: "docker:24.0.6-dind-rootless"
|
|
# commands:
|
|
# - 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 .
|
|
## when:
|
|
## - branch: [ master, main ]
|
|
|
|
services:
|
|
docker:
|
|
image: "docker:24.0.6-dind-rootless" |