forked from async-graphql/graphgate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Push docker image to GitHub packages
- Loading branch information
1 parent
c44a034
commit b347ca7
Showing
9 changed files
with
81 additions
and
190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,24 +9,29 @@ jobs: | |
cover: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
override: true | ||
|
||
- name: Install libsqlite3-dev | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libsqlite3-dev | ||
- name: Run cargo-tarpaulin | ||
uses: actions-rs/[email protected] | ||
with: | ||
version: '0.14.3' | ||
version: "0.14.3" | ||
args: --out Xml --all | ||
- name: Upload to codecov.io | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{secrets.CODECOV_TOKEN}} | ||
|
||
# - name: Upload to codecov.io | ||
# uses: codecov/[email protected] | ||
# with: | ||
# token: ${{secrets.CODECOV_TOKEN}} | ||
|
||
- name: Archive code coverage results | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM rust:alpine as builder | ||
RUN apk add --no-cache musl-dev openssl-dev openssl-libs-static | ||
RUN rustup target add x86_64-unknown-linux-musl | ||
RUN update-ca-certificates | ||
WORKDIR /graphgate | ||
COPY ./ . | ||
RUN cargo build --target x86_64-unknown-linux-musl --release | ||
|
||
FROM scratch | ||
WORKDIR /graphgate | ||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt | ||
COPY --from=builder /graphgate/target/x86_64-unknown-linux-musl/release/graphgate ./ | ||
USER 1000 | ||
ENTRYPOINT [ "/graphgate/graphgate" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM arm64v8/rust:alpine as builder | ||
|
||
ENV CC_aarch64_unknown_linux_musl "clang" | ||
ENV AR_aarch64_unknown_linux_musl "llvm-ar" | ||
ENV CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_RUSTFLAGS "-Clink-self-contained=yes -Clinker=rust-lld" | ||
|
||
RUN apk add --no-cache musl-dev openssl-dev openssl-libs-static clang llvm lld | ||
RUN rustup target add aarch64-unknown-linux-musl | ||
RUN update-ca-certificates | ||
|
||
WORKDIR /graphgate | ||
COPY ./ . | ||
RUN cargo build --target aarch64-unknown-linux-musl --release | ||
|
||
FROM scratch | ||
WORKDIR /graphgate | ||
|
||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt | ||
COPY --from=builder /graphgate/target/aarch64-unknown-linux-musl/release/graphgate ./ | ||
|
||
USER 1000 | ||
ENTRYPOINT [ "/graphgate/graphgate" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters