Skip to content

Commit

Permalink
🔖 Release v0.0.1 (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronleopold committed Feb 18, 2024
1 parent 5162f0d commit 3ecf4fb
Show file tree
Hide file tree
Showing 22 changed files with 502 additions and 66 deletions.
409 changes: 409 additions & 0 deletions .github/CHANGELOG.md

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Expand Up @@ -8,6 +8,7 @@ on:

jobs:
check-rust:
if: "!contains(github.event.pull_request.head.ref, 'release/v')"
name: Rust checks
runs-on: [self-hosted]
steps:
Expand All @@ -30,6 +31,7 @@ jobs:
# cargo integration-tests

check-typescript:
if: "!contains(github.event.pull_request.head.ref, 'release/v')"
name: TypeScript checks
runs-on: [self-hosted]
steps:
Expand Down
40 changes: 31 additions & 9 deletions .github/workflows/release.yml
Expand Up @@ -7,7 +7,7 @@ on:
pull_request:
branches:
- main
types: [opened, closed]
types: [opened, closed, synchronize, reopened]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -22,28 +22,50 @@ jobs:
if: contains(github.event.pull_request.head.ref, 'release/v')
name: Parse semver version
runs-on: [self-hosted]
outputs:
version: ${{ steps.tag.outputs.version }}
tags: ${{ steps.docker-tags.outputs.tags }}
steps:
- name: Extract version from branch name
id: tag
run: echo "version=$(echo ${{ github.event.pull_request.head.ref }} | sed -e 's/release\/v//')" >> $GITHUB_ENV
run: echo "version=$(echo ${{ github.event.pull_request.head.ref }} | sed -e 's/release\/v//')" >> $GITHUB_OUTPUT

- name: Print the tag
run: echo "The output version is ${{ steps.tag.outputs.version }}"

- name: Configure docker tags
id: docker-tags
run: |
echo "DOCKER_TAGS=latest,nightly,${{ steps.tag.outputs.version }}" >> $GITHUB_ENV
echo "tags=latest,nightly,${{ steps.tag.outputs.version }}" >> $GITHUB_OUTPUT
echo "Docker tags are latest, nightly, and ${{ steps.tag.outputs.version }}"
push-or-load:
if: contains(github.event.pull_request.head.ref, 'release/v')
name: Configure docker load/push
runs-on: [self-hosted]
outputs:
load: ${{ steps.configure.outputs.load }}
push: ${{ steps.configure.outputs.push }}
platforms: ${{ steps.configure.outputs.platforms }}
steps:
- name: Configure environment
id: configure
run: |
echo "load=${{ github.event.pull_request.merged == false }}" >> $GITHUB_OUTPUT
echo "push=${{ github.event.pull_request.merged == true }}" >> $GITHUB_OUTPUT
if [[ ${{ github.event.pull_request.merged }} == true ]]; then
echo "push=true" >> $GITHUB_OUTPUT
echo "load=false" >> $GITHUB_OUTPUT
echo "platforms=linux/arm64/v8,linux/amd64" >> $GITHUB_OUTPUT
else
echo "push=false" >> $GITHUB_OUTPUT
echo "load=true" >> $GITHUB_OUTPUT
echo "platforms=linux/amd64" >> $GITHUB_OUTPUT
fi
- name: Print the configuration
run: |
echo "Platforms: ${{ steps.configure.outputs.platforms }}"
echo "Load: ${{ steps.configure.outputs.load }}"
echo "Push: ${{ steps.configure.outputs.push }}"
build-stable-docker:
if: contains(github.event.pull_request.head.ref, 'release/v')
Expand All @@ -59,10 +81,10 @@ jobs:
with:
username: ${{ env.DOCKER_USERNAME }}
password: ${{ env.DOCKER_PASSWORD }}
tags: ${{ env.DOCKER_TAGS }}
load: ${{ steps.push-or-load.outputs.load }}
push: ${{ steps.push-or-load.outputs.push }}
platforms: 'linux/arm64/v8,linux/amd64'
tags: ${{ needs.parse-semver.outputs.tags }}
load: ${{ needs.push-or-load.outputs.load }}
push: ${{ needs.push-or-load.outputs.push }}
platforms: ${{ needs.push-or-load.outputs.platforms }}
discord-webhook: ${{ secrets.DISCORD_WEBHOOK }}

# build-web-app:
Expand Down
4 changes: 3 additions & 1 deletion .prettierignore
Expand Up @@ -10,4 +10,6 @@ build
.next

# locale files
interface/src/i18n/locales/*.json
interface/src/i18n/locales/*.json

CHANGELOG.md

0 comments on commit 3ecf4fb

Please sign in to comment.