aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/publish.yml41
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 }}