Skip to content

Commit

Permalink
ci: Rename release jobs for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfgangwalther committed Feb 21, 2024
1 parent 4c61706 commit 6cbd086
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 29 deletions.
56 changes: 28 additions & 28 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ jobs:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}


Build-Cabal-Arm:
name: Build aarch64 (Cabal, GHC 9.4.8)
arm:
name: Build / Cabal - aarch64 GHC 9.4.8
runs-on: ubuntu-latest
outputs:
remotepath: ${{ steps.Remote-Dir.outputs.remotepath }}
Expand Down Expand Up @@ -101,15 +101,15 @@ jobs:
if-no-files-found: error


Prepare-Release:
name: Prepare release
prepare:
name: Release / Prepare
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
needs:
- docs
- test
- build
- Build-Cabal-Arm
- arm
outputs:
version: ${{ steps.Identify-Version.outputs.version }}
isprerelease: ${{ steps.Identify-Version.outputs.isprerelease }}
Expand Down Expand Up @@ -158,14 +158,14 @@ jobs:
if-no-files-found: error


Release-GitHub:
name: Release on GitHub
github:
name: Release / GitHub
permissions:
contents: write
runs-on: ubuntu-latest
needs: Prepare-Release
needs: prepare
env:
VERSION: ${{ needs.Prepare-Release.outputs.version }}
VERSION: ${{ needs.prepare.outputs.version }}
steps:
- uses: actions/checkout@v4
- name: Download all artifacts
Expand Down Expand Up @@ -204,7 +204,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
isprerelease="${{ needs.Prepare-Release.outputs.isprerelease }}"
isprerelease="${{ needs.prepare.outputs.isprerelease }}"
echo "Releasing version v$VERSION on GitHub (isprerelease=$isprerelease)..."
gh release delete "v$VERSION" || true
Expand All @@ -214,18 +214,18 @@ jobs:
release-bundle/*
Release-Docker:
name: Release on Docker Hub
docker:
name: Release / Docker Hub
runs-on: ubuntu-latest
needs:
- Prepare-Release
- prepare
env:
GITHUB_COMMIT: ${{ github.sha }}
DOCKER_REPO: postgrest
DOCKER_USER: stevechavez
DOCKER_PASS: ${{ secrets.DOCKER_PASS }}
VERSION: ${{ needs.Prepare-Release.outputs.version }}
ISPRERELEASE: ${{ needs.Prepare-Release.outputs.isprerelease }}
VERSION: ${{ needs.prepare.outputs.version }}
ISPRERELEASE: ${{ needs.prepare.outputs.isprerelease }}
steps:
- uses: actions/checkout@v4
- name: Setup Nix Environment
Expand Down Expand Up @@ -267,26 +267,26 @@ jobs:
# fi


Release-Docker-Arm:
name: Release Arm Builds on Docker Hub
docker-arm:
name: Release / Docker Hub Arm
runs-on: ubuntu-latest
needs:
- Build-Cabal-Arm
- Prepare-Release
- Release-Docker
- arm
- prepare
- docker
env:
GITHUB_COMMIT: ${{ github.sha }}
DOCKER_REPO: postgrest
DOCKER_USER: stevechavez
DOCKER_PASS: ${{ secrets.DOCKER_PASS }}
VERSION: ${{ needs.Prepare-Release.outputs.version }}
ISPRERELEASE: ${{ needs.Prepare-Release.outputs.isprerelease }}
VERSION: ${{ needs.prepare.outputs.version }}
ISPRERELEASE: ${{ needs.prepare.outputs.isprerelease }}
steps:
- uses: actions/checkout@v4
- name: Publish images for ARM builds on Docker Hub
uses: appleboy/ssh-action@master
env:
REMOTE_DIR: ${{ needs.Build-Cabal-Arm.outputs.remotepath }}
REMOTE_DIR: ${{ needs.arm.outputs.remotepath }}
with:
host: ${{ secrets.SSH_ARM_HOST }}
username: ubuntu
Expand All @@ -297,15 +297,15 @@ jobs:
script: bash ~/$REMOTE_DIR/docker-publish.sh "$GITHUB_COMMIT" "$DOCKER_REPO" "$DOCKER_USER" "$DOCKER_PASS" "$REMOTE_DIR" "$VERSION" "$ISPRERELEASE"


Clean-Arm-Server:
name: Remove copied files from server
clean-arm:
name: Build / Cleanup
needs:
- Build-Cabal-Arm
- Release-Docker-Arm
- arm
- docker-arm
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
env:
REMOTE_DIR: ${{ needs.Build-Cabal-Arm.outputs.remotepath }}
REMOTE_DIR: ${{ needs.arm.outputs.remotepath }}
steps:
- uses: actions/checkout@v4
- name: Remove uploaded files from server
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- completed

jobs:
upload:
loadtest:
name: Loadtest
permissions:
checks: write
Expand Down

0 comments on commit 6cbd086

Please sign in to comment.