Skip to content

Commit

Permalink
Merge pull request #21 from kruserr/2024-02-23-1
Browse files Browse the repository at this point in the history
ci: set constraints
  • Loading branch information
kruserr committed Feb 23, 2024
2 parents dbc1dab + 680c8e9 commit 30eb763
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,14 @@ jobs:
cargo publish -p rapiddb --token ${{ secrets.CARGO_TOKEN }}
cargo publish -p rapiddb-web --token ${{ secrets.CARGO_TOKEN }}
build-and-push:
runs-on: ubuntu-latest
publish-docker:
name: Publish on GitHub Packages and Docker Hub
needs:
- rustfmt
- clippy
- test
runs-on: ubuntu-22.04
if: github.event_name == 'push'

steps:
- name: Checkout code
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ jobs:
- name: Test
run: cargo test

build-and-push:
runs-on: ubuntu-latest

publish-docker:
name: Publish on GitHub Packages and Docker Hub
runs-on: ubuntu-22.04
if: github.event_name == 'push'
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand Down

0 comments on commit 30eb763

Please sign in to comment.