fix(ci): removed build and changelog
Some checks failed
CI / Clippy (push) Has been cancelled
CI / Security Audit (push) Has been cancelled
CI / Tests (push) Has been cancelled
CI / Format (push) Has been cancelled
CI / Format (pull_request) Failing after 6m27s
CI / Clippy (pull_request) Successful in 2m19s
CI / Security Audit (pull_request) Successful in 1m42s
CI / Tests (pull_request) Has been skipped
Some checks failed
CI / Clippy (push) Has been cancelled
CI / Security Audit (push) Has been cancelled
CI / Tests (push) Has been cancelled
CI / Format (push) Has been cancelled
CI / Format (pull_request) Failing after 6m27s
CI / Clippy (pull_request) Successful in 2m19s
CI / Security Audit (pull_request) Successful in 1m42s
CI / Tests (pull_request) Has been skipped
This commit is contained in:
@@ -95,77 +95,3 @@ jobs:
|
|||||||
- name: Run tests (web)
|
- name: Run tests (web)
|
||||||
run: cargo test --features web --no-default-features
|
run: cargo test --features web --no-default-features
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------
|
|
||||||
# Stage 3: Build Docker image and push to registry
|
|
||||||
# Only on main and release/* branches
|
|
||||||
# ---------------------------------------------------------------------------
|
|
||||||
build-and-push:
|
|
||||||
name: Build & Push Image
|
|
||||||
runs-on: docker
|
|
||||||
needs: [test]
|
|
||||||
if: >-
|
|
||||||
github.event_name == 'push' &&
|
|
||||||
(github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/'))
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
run: |
|
|
||||||
git init
|
|
||||||
git remote add origin "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git"
|
|
||||||
git fetch --depth=1 origin "${GITHUB_SHA}"
|
|
||||||
git checkout FETCH_HEAD
|
|
||||||
|
|
||||||
- name: Determine image tag
|
|
||||||
id: tag
|
|
||||||
run: |
|
|
||||||
BRANCH="${GITHUB_REF#refs/heads/}"
|
|
||||||
# Replace / with - for valid Docker tags (e.g. release/1.0 -> release-1.0)
|
|
||||||
BRANCH_SAFE=$(echo "$BRANCH" | tr '/' '-')
|
|
||||||
SHA=$(echo "$GITHUB_SHA" | head -c 8)
|
|
||||||
echo "tag=${BRANCH_SAFE}-${SHA}" >> "$GITHUB_OUTPUT"
|
|
||||||
|
|
||||||
- name: Log in to container registry
|
|
||||||
run: >-
|
|
||||||
echo "${{ secrets.REGISTRY_PASSWORD }}"
|
|
||||||
| docker login https://registry.meghsakha.com
|
|
||||||
-u "${{ secrets.REGISTRY_USERNAME }}"
|
|
||||||
--password-stdin
|
|
||||||
|
|
||||||
- name: Build Docker image
|
|
||||||
run: >-
|
|
||||||
docker build
|
|
||||||
-t registry.meghsakha.com/certifai/dashboard:${{ steps.tag.outputs.tag }}
|
|
||||||
-t registry.meghsakha.com/certifai/dashboard:latest
|
|
||||||
.
|
|
||||||
|
|
||||||
- name: Push Docker image
|
|
||||||
run: |
|
|
||||||
docker push registry.meghsakha.com/certifai/dashboard:${{ steps.tag.outputs.tag }}
|
|
||||||
docker push registry.meghsakha.com/certifai/dashboard:latest
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------
|
|
||||||
# Stage 3b: Generate changelog from conventional commits
|
|
||||||
# Only on main and release/* branches
|
|
||||||
# ---------------------------------------------------------------------------
|
|
||||||
changelog:
|
|
||||||
name: Changelog
|
|
||||||
runs-on: docker
|
|
||||||
needs: [test]
|
|
||||||
if: >-
|
|
||||||
github.event_name == 'push' &&
|
|
||||||
(github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/'))
|
|
||||||
container:
|
|
||||||
image: rust:1.89-bookworm
|
|
||||||
steps:
|
|
||||||
- name: Checkout (full history)
|
|
||||||
run: |
|
|
||||||
git clone "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git" .
|
|
||||||
git checkout "${GITHUB_SHA}"
|
|
||||||
- name: Install git-cliff
|
|
||||||
run: cargo install git-cliff --locked
|
|
||||||
- name: Generate changelog
|
|
||||||
run: git cliff --output CHANGELOG.md
|
|
||||||
- name: Upload changelog artifact
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: changelog
|
|
||||||
path: CHANGELOG.md
|
|
||||||
|
|||||||
Reference in New Issue
Block a user