diff options
author | Trumeet <17158086+Trumeet@users.noreply.github.com> | 2021-01-07 20:52:48 -0800 |
---|---|---|
committer | Trumeet <17158086+Trumeet@users.noreply.github.com> | 2021-01-07 20:52:48 -0800 |
commit | 047839d5917f0a5b411dbd0a6a51ca6218e19b27 (patch) | |
tree | 605784b030d85db3efded5eb8df3fa8f65a75f87 | |
parent | bb19d92363307e7133a1416d7d51ed1c7022898a (diff) | |
download | dn42peering-047839d5917f0a5b411dbd0a6a51ca6218e19b27.tar dn42peering-047839d5917f0a5b411dbd0a6a51ca6218e19b27.tar.gz dn42peering-047839d5917f0a5b411dbd0a6a51ca6218e19b27.tar.bz2 dn42peering-047839d5917f0a5b411dbd0a6a51ca6218e19b27.zip |
ci: add CI
-rw-r--r-- | .github/workflows/publish.yml | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..962a768 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,41 @@ +name: Publish + +on: + tags: + - 'v*' + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + build_central: + runs-on: ubuntu-latest + + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + - name: Login to GitHub Container Registry + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.CR_PAT }} + - name: Build and push central Docker image + uses: docker/build-push-action@v2.2.1 + with: + tags: ghcr.io/Trumeet/dn42peering:${GITHUB_REF##*/} + push: true + build_agent: + runs-on: ubuntu-latest + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + - name: makepkg + uses: py7hon/arch-makepkg@v0.0.2 + - uses: ncipollo/release-action@v1.7.3 + with: + allowUpdates: true + tag: "packages" + artifacts: "./*/agent-*.zst" + token: ${{ secrets.GITHUB_TOKEN }} |