Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: fix docker builds #25

Merged
merged 1 commit into from
Jun 19, 2023
Merged
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
12 changes: 6 additions & 6 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This workflow is run as part of CI to test that they run through.
#
# The images are pushed to `ghcr.io` for each PR and branch. The ones for
# the releases are pushed in `release-please.yml`.
name: Docker Build

on:
push:
branches:
Expand All @@ -6,12 +12,6 @@ on:
branches:
- main

# This workflow is run as part of CI to test that they run through.
#
# The images are pushed to `ghcr.io` for each PR and branch. The ones for
# the releases are pushed in `release-please.yml`.
name: Docker Build

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
Expand Down
21 changes: 14 additions & 7 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,31 @@
# Run `release-please` and build and release Docker image.
#
# This builds the containers with version tags. The `main` and `latest` tags are
# pushed in `docker-build.yml`.
name: Release Package/Image

on:
push:
branches:
- main

# Run `release-please` and build and release Docker image.
#
# This builds the containers with version tags. The `main` and `latest` tags are
# pushed in `docker-build.yml`.
name: release-please
env:
REGISTRY: ghcr.io
PACKAGE_NAME: ${{ github.repository }}
IMAGE_NAME: ${{ github.repository }}

jobs:
release-please:
if: github.repository_owner == 'bihealth'
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
steps:
- uses: GoogleCloudPlatform/release-please-action@v2
- uses: GoogleCloudPlatform/release-please-action@v3
id: release
with:
release-type: rust
package-name: the-repo-name
package-name: ${{ env.PACKAGE_NAME}}

- uses: actions/checkout@v3
if: ${{ steps.release.outputs.release_created }}
Expand Down
36 changes: 18 additions & 18 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ prost = "0.11"
rayon = "1.7"
regex = "1.7"
rocksdb = { version = "0.21", features = ["multi-threaded-cf"] }
rocksdb-utils-lookup = "0.1"
rocksdb-utils-lookup = "0.2"
serde = { version = "1.0", features = ["serde_derive"] }
serde_json = "1.0"
serde_with = "3.0"
shellexpand = "3.0"
strum = { version = "0.24", features = ["strum_macros", "derive"] }
strum_macros = "0.24"
strum = { version = "0.25", features = ["strum_macros", "derive"] }
strum_macros = "0.25"
thiserror = "1.0"
tracing = "0.1"
tracing-subscriber = "0.3"
Expand Down