diff --git a/.github/workflows/build-push.yaml b/.github/workflows/build-push-edge-debug.yaml similarity index 75% rename from .github/workflows/build-push.yaml rename to .github/workflows/build-push-edge-debug.yaml index a4e964815..c329640c2 100644 --- a/.github/workflows/build-push.yaml +++ b/.github/workflows/build-push-edge-debug.yaml @@ -1,4 +1,4 @@ -name: Build and push to Docker Hub +name: Build and push edge debug tag on: push: @@ -28,14 +28,6 @@ jobs: uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 with: images: parseable/parseable - - - name: Build and push - uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc - with: - context: . - file: ./Dockerfile - push: true - tags: ${{ secrets.DOCKERHUB_USERNAME }}/parseable:edge - name: Build and push uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc diff --git a/.github/workflows/build-push-edge.yaml b/.github/workflows/build-push-edge.yaml new file mode 100644 index 000000000..594cabf06 --- /dev/null +++ b/.github/workflows/build-push-edge.yaml @@ -0,0 +1,38 @@ +name: Build and push edge tag + +on: + push: + branches: + - 'main' + paths-ignore: + - 'docs/**' + - 'helm/**' + - 'assets/**' + - '**.md' + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Login to Docker Hub + uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 + with: + images: parseable/parseable + + - name: Build and push + uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc + with: + context: . + file: ./Dockerfile + push: true + tags: ${{ secrets.DOCKERHUB_USERNAME }}/parseable:edge diff --git a/Dockerfile.debug b/Dockerfile.debug index c4550e60f..fbd2337ad 100644 --- a/Dockerfile.debug +++ b/Dockerfile.debug @@ -26,10 +26,10 @@ COPY . . RUN cargo build --features debug # final stage -FROM gcr.io/distroless/cc-debian11:debug-nonroot +FROM docker.io/debian:bullseye-slim WORKDIR /parseable -COPY --from=builder /parseable/debug/parseable /usr/bin/parseable +COPY --from=builder /parseable/target/debug/parseable /usr/bin/parseable CMD ["parseable"]