Skip to content

Commit

Permalink
Merge pull request #1 from mfloto/feature/github-actions-pipeline
Browse files Browse the repository at this point in the history
Create pipeline.yml
  • Loading branch information
mfloto authored Dec 21, 2024
2 parents d86e2f9 + 5a407d3 commit e3efeff
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
@@ -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)
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e3efeff

Please sign in to comment.