mirror of
https://github.com/Expand-sys/CCash
synced 2026-03-22 12:37:08 +11:00
ci: CMD env vars, publish to GH packages
This commit is contained in:
parent
8cfb21203e
commit
7152054edb
3 changed files with 25 additions and 3 deletions
|
|
@ -1 +1,2 @@
|
||||||
/build
|
/build
|
||||||
|
/config.json
|
||||||
|
|
|
||||||
25
.github/workflows/deploy.yaml
vendored
25
.github/workflows/deploy.yaml
vendored
|
|
@ -2,9 +2,30 @@ name: Publish Staging
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- cicd
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
|
name: Push Docker image to GitHub Packages
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
packages: write
|
||||||
|
contents: read
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout the repo
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Login to GitHub Docker Registry
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
registry: docker.pkg.github.com
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Format repository
|
||||||
|
run: |
|
||||||
|
echo IMAGE_REPOSITORY=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV
|
||||||
|
- name: Build container image
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
docker.pkg.github.com/${{ env.IMAGE_REPOSITORY }}/ccash:${{ github.sha }}
|
||||||
|
docker.pkg.github.com/${{ env.IMAGE_REPOSITORY }}/ccash:latest
|
||||||
|
|
|
||||||
|
|
@ -13,4 +13,4 @@ WORKDIR /ccash/build
|
||||||
RUN cmake ..
|
RUN cmake ..
|
||||||
RUN make -j$(nprov)
|
RUN make -j$(nprov)
|
||||||
|
|
||||||
CMD ["/ccash/build/bank", "AdminPassword", "10", "4"]
|
CMD ["/ccash/build/bank", "$CCASH_ADMIN_PASSWORD", "$CCASH_SAVE_FREQUENCY", "$CCASH_THREAD_COUNT"]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue