Skip to content

Commit 26d3200

Browse files
authored
Fix dockerfile.debug with correct base image (#330)
1 parent 7845aff commit 26d3200

File tree

3 files changed

+41
-11
lines changed

3 files changed

+41
-11
lines changed

.github/workflows/build-push.yaml renamed to .github/workflows/build-push-edge-debug.yaml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build and push to Docker Hub
1+
name: Build and push edge debug tag
22

33
on:
44
push:
@@ -28,14 +28,6 @@ jobs:
2828
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
2929
with:
3030
images: parseable/parseable
31-
32-
- name: Build and push
33-
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
34-
with:
35-
context: .
36-
file: ./Dockerfile
37-
push: true
38-
tags: ${{ secrets.DOCKERHUB_USERNAME }}/parseable:edge
3931

4032
- name: Build and push
4133
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build and push edge tag
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
paths-ignore:
8+
- 'docs/**'
9+
- 'helm/**'
10+
- 'assets/**'
11+
- '**.md'
12+
13+
jobs:
14+
docker:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v3
19+
20+
- name: Login to Docker Hub
21+
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
22+
with:
23+
username: ${{ secrets.DOCKERHUB_USERNAME }}
24+
password: ${{ secrets.DOCKERHUB_TOKEN }}
25+
26+
- name: Extract metadata (tags, labels) for Docker
27+
id: meta
28+
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
29+
with:
30+
images: parseable/parseable
31+
32+
- name: Build and push
33+
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
34+
with:
35+
context: .
36+
file: ./Dockerfile
37+
push: true
38+
tags: ${{ secrets.DOCKERHUB_USERNAME }}/parseable:edge

Dockerfile.debug

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ COPY . .
2626
RUN cargo build --features debug
2727

2828
# final stage
29-
FROM gcr.io/distroless/cc-debian11:debug-nonroot
29+
FROM docker.io/debian:bullseye-slim
3030

3131
WORKDIR /parseable
3232

33-
COPY --from=builder /parseable/debug/parseable /usr/bin/parseable
33+
COPY --from=builder /parseable/target/debug/parseable /usr/bin/parseable
3434

3535
CMD ["parseable"]

0 commit comments

Comments
 (0)