-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.rultor.yml
33 lines (33 loc) · 1.06 KB
/
.rultor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# SPDX-FileCopyrightText: Copyright (c) 2024-2025 Zerocracy
# SPDX-License-Identifier: MIT
---
# yamllint disable rule:line-length
docker:
image: yegor256/java
assets:
docker-password: yegor256/home#assets/docker-password
install: |
sudo /usr/bin/install-node.sh
sudo make install clean "--directory=$(pwd)"
merge:
script: |-
sudo docker build "$(pwd)"
sudo make -C "$(pwd)" target/html/simple.html
release:
pre: false
script: |-
[[ "${tag}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || exit -1
sed -i -e "s/0.0.0/${tag}/" entry.sh
sed -i -e "s/0.0.0/${tag}/" Dockerfile
sed -i -e "s/:latest/:${tag}/" action.yml
git add entry.sh
git add Dockerfile
git add action.yml
git commit -m "version set to ${tag}"
sudo make -C "$(pwd)" target/html/simple.html
repo=yegor256/pages-action
sudo docker build "$(pwd)" --tag "${repo}:${tag}"
sudo docker build "$(pwd)" --tag "${repo}:latest"
cat ../docker-password | sudo docker login --password-stdin -u yegor256
sudo docker push "${repo}:${tag}"
sudo docker push "${repo}:latest"