aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2022-11-02 14:09:19 +0000
committerNeil Alexander <neilalexander@users.noreply.github.com>2022-11-02 14:09:19 +0000
commit9c0725feac61b8586d6bb6911a8dac10a68e8bfd (patch)
tree5e00a745d065014c8ee4d08cc3d2e1769f51656c /.github
parentca8bc873801c77f67378e542686d19ed388bba53 (diff)
Maybe fix GHA
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/docker.yml36
1 files changed, 33 insertions, 3 deletions
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml
index 95213f71..24df03c6 100644
--- a/.github/workflows/docker.yml
+++ b/.github/workflows/docker.yml
@@ -21,7 +21,6 @@ jobs:
monolith:
name: Monolith image
runs-on: ubuntu-latest
- needs: build-flags
permissions:
contents: read
packages: write
@@ -101,7 +100,6 @@ jobs:
polylith:
name: Polylith image
runs-on: ubuntu-latest
- needs: build-flags
permissions:
contents: read
packages: write
@@ -180,7 +178,6 @@ jobs:
demo-pinecone:
name: Pinecone demo image
runs-on: ubuntu-latest
- needs: build-flags
permissions:
contents: read
packages: write
@@ -244,6 +241,39 @@ jobs:
ghcr.io/${{ env.GHCR_NAMESPACE }}/dendrite-demo-yggdrasil:latest
ghcr.io/${{ env.GHCR_NAMESPACE }}/dendrite-demo-yggdrasil:${{ env.RELEASE_VERSION }}
+ demo-yggdrasil:
+ name: Yggdrasil demo image
+ runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ packages: write
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+ - name: Get release tag & build flags
+ if: github.event_name == 'release' # Only for GitHub releases
+ run: |
+ echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
+ echo "BUILD=$(git rev-parse --short HEAD || "") >> $GITHUB_ENV
+ BRANCH=$(git symbolic-ref --short HEAD | tr -d \/)
+ [ ${BRANCH} == "main" ] && BRANCH=""
+ echo "BRANCH=${BRANCH}" >> $GITHUB_ENV
+ - name: Set up QEMU
+ uses: docker/setup-qemu-action@v1
+ - name: Set up Docker Buildx
+ uses: docker/setup-buildx-action@v2
+ - name: Login to Docker Hub
+ uses: docker/login-action@v2
+ with:
+ username: ${{ env.DOCKER_HUB_USER }}
+ password: ${{ secrets.DOCKER_TOKEN }}
+ - name: Login to GitHub Containers
+ uses: docker/login-action@v2
+ with:
+ registry: ghcr.io
+ username: ${{ github.repository_owner }}
+ password: ${{ secrets.GITHUB_TOKEN }}
+
- name: Build main Yggdrasil demo image
if: github.ref_name == 'main'
id: docker_build_demo_yggdrasil