Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 33 additions & 1 deletion .github/workflows/test-build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,40 @@ jobs:
echo "Running configs integration tests on ${{ matrix.arch }}"
make BUILD_IMAGE=quay.io/cortexproject/build-image:master-fe84258322 TTY='' configs-integration-test

packages:
needs: lint
runs-on: ubuntu-24.04
container:
image: quay.io/cortexproject/build-image:master-fe84258322
steps:
- name: Checkout Repo
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Setup Git safe.directory
run: |
echo "this step is needed because when running in container, actions/checkout does not set safe.directory effectively."
echo "See https://github.com/actions/runner/issues/2033. We should use --system instead of --global"
git config --system --add safe.directory $GITHUB_WORKSPACE
- name: Sym Link Expected Path to Workspace
run: |
mkdir -p /go/src/github.com/cortexproject/cortex
ln -s $GITHUB_WORKSPACE/* /go/src/github.com/cortexproject/cortex
- name: Build Binaries
run: |
touch build-image/.uptodate
make BUILD_IN_CONTAINER=false dist
- name: Build Packages
run: make BUILD_IN_CONTAINER=false PACKAGE_IN_CONTAINER=false packages
- name: Upload Packages
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: Packages
path: |
dist/*.deb
dist/*.rpm
dist/*-sha-256

deploy:
needs: [build, test, lint, integration, integration-configs-db]
needs: [build, test, lint, integration, integration-configs-db, packages]
if: (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')) && github.repository == 'cortexproject/cortex'
runs-on: ubuntu-24.04
container:
Expand Down
1 change: 0 additions & 1 deletion packaging/fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ FROM alpine:3.23
RUN apk add --no-cache \
ruby \
ruby-dev \
ruby-etc \
gcc \
git \
libc-dev \
Expand Down
Loading