diff options
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/build-blog.yml | 24 | ||||
| -rw-r--r-- | .github/workflows/build-workstation.yml | 22 |
2 files changed, 46 insertions, 0 deletions
diff --git a/.github/workflows/build-blog.yml b/.github/workflows/build-blog.yml new file mode 100644 index 00000000..e63d621f --- /dev/null +++ b/.github/workflows/build-blog.yml @@ -0,0 +1,24 @@ +on: + push: + paths: + - 'blog_experiment/**' + branches: + - master + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + submodules: true + - run: | + cd blog_experiment + rustup toolchain install nightly --profile minimal + podman login quay.io -u $USER -p $TOKEN --authfile ~/docker-config + chmod ugo+r ~/docker-config + ./build.rs --docker-config ~/docker-config . quay.io/alexpdp7/blog:latest + env: + USER: ${{ vars.BLOG_ROBOT_USERNAME }} + TOKEN: ${{ secrets.BLOG_ROBOT_TOKEN }} diff --git a/.github/workflows/build-workstation.yml b/.github/workflows/build-workstation.yml new file mode 100644 index 00000000..7e1d1a82 --- /dev/null +++ b/.github/workflows/build-workstation.yml @@ -0,0 +1,22 @@ +on: + push: + paths: + - 'workstation/**' + branches: + - main + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + submodules: true + - run: | + cd workstation + ./build_workstation + podman login -u="alexpdp7+github_workstation_builder" -p="$ROBOT_TOKEN" quay.io + podman push localhost/workstation:latest quay.io/alexpdp7/workstation:latest + env: + ROBOT_TOKEN: ${{ secrets.ROBOT_TOKEN }} |
