Skip to content

Commit

Permalink
Fix CI docker #605
Browse files Browse the repository at this point in the history
Disable provenance docker ci #605

Retry frovlad image

#605 rust docker base image buster

Remove platforms dokcer #605

Default rust build image

Try sparse registry

Nightly

Fix nightly

Net git fetch
  • Loading branch information
joepio committed Mar 3, 2023
1 parent 43c5743 commit d273724
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build docker image
name: Docker

on:
workflow_dispatch:
Expand All @@ -13,9 +13,7 @@ on:

jobs:
push_to_registry:
name: Push Docker image to Docker Hub
# See https://github.com/atomicdata-dev/atomic-data-rust/issues/499
# if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
name: Build Docker images and push to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
Expand Down Expand Up @@ -43,10 +41,11 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v4
with:
context: .
push: true
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6
provenance: false
platforms: linux/amd64,linux/arm64
tags: joepmeneer/atomic-server:latest
labels: ${{ steps.meta.outputs.labels }}
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
on: [push, workflow_dispatch]

name: "Build, test, clippy"
jobs:
check:
name: Check
Expand Down
5 changes: 3 additions & 2 deletions dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
FROM rust as builder
FROM rust:1.67 as builder
WORKDIR /app
COPY . .
RUN cargo build --release --bin atomic-server
RUN cargo build --release --bin atomic-server --config net.git-fetch-with-cli=true

# We only need a small runtime for this step, but make sure glibc is installed
FROM frolvlad/alpine-glibc:alpine-3.16_glibc-2.34 as runtime
COPY --chmod=0755 --from=builder /app/target/release/atomic-server /atomic-server-bin
# For a complete list of possible ENV vars or available flags, run with `--help`
ENV ATOMIC_STORE_PATH="/atomic-storage/db"
ENV ATOMIC_CONFIG_PATH="/atomic-storage/config.toml"
ENV ATOMIC_PORT="80"
Expand Down

0 comments on commit d273724

Please sign in to comment.