Skip to content

Commit

Permalink
#6 deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed May 30, 2024
1 parent 7cb12c7 commit a03335f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .rultor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
---
docker:
image: yegor256/rultor-image:1.23.1
assets:
docker-password: yegor256/home#assets/docker-password
install: |
sudo make install clean "--directory=$(pwd)"
merge:
Expand All @@ -33,7 +35,13 @@ release:
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
git add entry.sh
git add Dockerfile
git commit -m "version set to ${tag}"
sudo docker build "$(pwd)"
make
repo=zerocracy/pages-action
sudo docker build "$(pwd)" --tag "${repo}:${tag}"
cat ../docker-password | sudo docker login --password-stdin --username yegor256
sudo docker push "${repo}:${tag}"
sudo docker push "${repo}:latest"
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ FROM ruby:3.3

LABEL "repository"="https://github.com/zerocracy/pages-action"
LABEL "maintainer"="Yegor Bugayenko"
LABEL "version"="0.0.0"

# hadolint ignore=DL3008
RUN apt-get update -y --fix-missing \
Expand Down

0 comments on commit a03335f

Please sign in to comment.