Skip to content

Commit

Permalink
build: fix docker builds (#25)
Browse files Browse the repository at this point in the history
Release-As: 0.1.5
  • Loading branch information
holtgrewe authored Jun 19, 2023
1 parent 8f6bf82 commit 2bede82
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 34 deletions.
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

0 comments on commit 2bede82

Please sign in to comment.