From 9e83f945b8d810476e2cdc286ae758912074f4b0 Mon Sep 17 00:00:00 2001 From: John Cairns Date: Fri, 26 Jan 2024 16:26:12 -0600 Subject: [PATCH] 46, 47: force prod ci build, upgrade codecov plugin --- .github/workflows/ci-image.yml | 4 ++-- .github/workflows/coverage.yml | 2 +- .github/workflows/prod-ci-image.yml | 35 +++++++++++++++++++++++++++++ 3 files changed, 38 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/prod-ci-image.yml diff --git a/.github/workflows/ci-image.yml b/.github/workflows/ci-image.yml index d058d64..3f6f419 100644 --- a/.github/workflows/ci-image.yml +++ b/.github/workflows/ci-image.yml @@ -22,8 +22,7 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - - - name: Build and Push + - name: Build CI uses: docker/build-push-action@v3 with: context: . @@ -32,3 +31,4 @@ jobs: build-args: | VERSION=latest CARGO_INCREMENTAL=0 + diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index d47249e..94aacb2 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -18,7 +18,7 @@ jobs: - name: Generate code coverage run: RUST_LOG=xps_gateway=info,registry=info,inbox=info,messaging=info,gateway_types=info cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} files: lcov.info diff --git a/.github/workflows/prod-ci-image.yml b/.github/workflows/prod-ci-image.yml new file mode 100644 index 0000000..16027cb --- /dev/null +++ b/.github/workflows/prod-ci-image.yml @@ -0,0 +1,35 @@ +name: Build Prod Image CI + +on: + workflow_dispatch: + pull_request: + branches: + - main + push: + branches: + - "*" + +jobs: + build: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v3 + - + name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - name: Build Prod Image CI + uses: docker/build-push-action@v3 + with: + context: . + file: prod/Dockerfile + platforms: linux/amd64 + push: false + build-args: | + VERSION=latest + CARGO_INCREMENTAL=0 +