Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rpm building test #1

Merged
merged 18 commits into from
May 9, 2022
Prev Previous commit
Next Next commit
Rpm building thsfs (#8)
* initial centos cleanup

rpm build image, and signing container

rpm build updates

* Debug echos

* Passing TAG and PAT variables through command option

* Changed the nano-env:centos docker repo name

* Change

* Changelog extractor is broken, changed also to git fetch --tags

Co-authored-by: Russel Waters <[email protected]>
thsfs and Russel Waters authored May 2, 2022
commit de1bd093e508d805acad2e44dd85ee3ad9e11738
48 changes: 48 additions & 0 deletions .github/workflows/ci_testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Live
on:
workflow_dispatch:
inputs:
repo:
description: "repo"
default: "nanocurrency/nano-node"
required: true
ref:
description: "tag to build"
default: "develop"
required: true
env:
artifact: 1

jobs:
linux_rpm_job:
runs-on: ubuntu-20.04
timeout-minutes: 90
steps:
- name: tag
run: |
echo "TAG=${{ github.event.inputs.ref }}" >> $GITHUB_ENV
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
with:
submodules: "recursive"
ref: ${{ github.event.inputs.ref }}
repository: ${{ github.event.inputs.repo }}
- name: CentOS base
run: ci/build-docker-image.sh docker/ci/Dockerfile-centos thsfs/nano-env:centos
- name: Debug the vars
run: |
echo "TAG: ${TAG}"
- name: Build Artifact
run: |
docker run -e LIVE=1 -e PAT=${{ secrets.GITHUB_TOKEN }} -e TAG=$TAG -v ${GITHUB_WORKSPACE}:/workspace \
-v artifacts:/root/rpmbuild/RPMS -v source:/root/rpmbuild/SOURCES \
thsfs/nano-env:centos /bin/bash -c "ci/build-centos.sh"

- name: Deploy to Staging server
uses: easingthemes/ssh-deploy@main
env:
SSH_PRIVATE_KEY: ${{ secrets.SERVER_SSH_KEY }}
ARGS: "-rltgoDzvO"
SOURCE: "rpmbuild/"
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
REMOTE_USER: ${{ secrets.REMOTE_USER }}
TARGET: ${{ secrets.REMOTE_TARGET }}