Skip to content

Commit

Permalink
fix CD
Browse files Browse the repository at this point in the history
Signed-off-by: Lance-Drane <[email protected]>
  • Loading branch information
Lance-Drane committed Aug 11, 2024
1 parent 527dd1a commit 61eb241
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 48 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,39 @@ jobs:
- uses: dtolnay/rust-toolchain@stable
- name: Run tests
run: cargo test --all-features --all-targets

docker-release:
needs: [fmt, clippy, test]
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
strategy:
matrix:
include:
- build_args: |
BIN_NAME=broker-2-http
app_name: broker-2-http
- build_args: |
BIN_NAME=http-2-broker
app_name: http-2-broker
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Log into registry ghcr.io
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push ${{ matrix.app_name }}
uses: docker/build-push-action@v6
with:
context: .
build-args: ${{ matrix.build_args }}
tags: |
ghcr.io/INTERSECT-SDK/broker-http-proxy/${{ matrix.app_name }}:latest
ghcr.io/INTERSECT-SDK/broker-http-proxy/${{ matrix.app_name }}:${{ github.sha }}
push: true
43 changes: 0 additions & 43 deletions .github/workflows/docker-release.yml

This file was deleted.

12 changes: 7 additions & 5 deletions .github/workflows/helm-release.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
name: Helm

on:
workflow_run:
workflows: ["CI"]
branches: ["main"]
types: ["completed"]
push:
branches:
- "main"
#paths:
#- "broker-2-http/charts/**"
#- "http-2-broker/charts/**"
workflow_dispatch:

jobs:
helm-release:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
permissions:
contents: write
Expand Down

0 comments on commit 61eb241

Please sign in to comment.