From ff90a915dfcf39038221051ca05fc0b9f6133ae8 Mon Sep 17 00:00:00 2001 From: Maxi <60036186+mfloto@users.noreply.github.com> Date: Sat, 21 Dec 2024 22:01:05 +0100 Subject: [PATCH 1/2] Create pipeline.yml --- .github/workflows/pipeline.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/pipeline.yml diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml new file mode 100644 index 0000000..4400f78 --- /dev/null +++ b/.github/workflows/pipeline.yml @@ -0,0 +1,30 @@ +name: Rust + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose + + docker: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Build the Docker image + run: docker build . --file Dockerfile --tag courier:$(date +%s) From 5a407d34ce9baa0a4967d154b280030dc9a5d7eb Mon Sep 17 00:00:00 2001 From: Maxi <60036186+mfloto@users.noreply.github.com> Date: Sat, 21 Dec 2024 22:07:05 +0100 Subject: [PATCH 2/2] chore: Update README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 168e5da..4fafe5c 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ This project is meant to redirect emails together with their attachments into a - [x] Add DOCKERFILE and docker-compose - [x] Adjust docker-compose to point to image on dockerhub - [ ] Use scratch image (Requires certificates to be copied to image. Maybe copy the ca-certificates.crt from the rust image?) -- [ ] Configure CI +- [x] Configure CI - [ ] Clean up code - [ ] Add logging - [ ] Add tests