diff --git a/.github/workflows/docker-test.yml b/.github/workflows/docker-test.yml new file mode 100644 index 0000000..8555747 --- /dev/null +++ b/.github/workflows/docker-test.yml @@ -0,0 +1,22 @@ +name: Build and Publish Test Docker Image + +on: + push: + branches: [ "test"] + pull_request: + branches: [ "test" ] +jobs: + + build: + runs-on: self-hosted + steps: + - uses: actions/checkout@v4 + - run: docker build . -t raspberrypi99/request-mirror + - name: Dockerize + if: success() + uses: manusa/actions-publish-docker@v1.1.2 + with: + name: raspberrypi99/request-mirror + tag: test + username: ${{ secrets.docker_hub_username }} + password: ${{ secrets.docker_hub_password }} diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 59c2a1a..e06d0b9 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -2,9 +2,9 @@ name: Build and Test Rust on: push: - branches: [ "main" ] + branches: [ "main", "test"] pull_request: - branches: [ "main" ] + branches: [ "main", "test" ] env: CARGO_TERM_COLOR: always @@ -26,10 +26,4 @@ jobs: - name: Build run: cargo build --release --verbose - name: Run tests - run: cargo test --release --verbose - - name: Upload a Build Artifact - uses: actions/upload-artifact@v4.3.4 - with: - name: linux-build - path: target/release/request-mirror - \ No newline at end of file + run: cargo test --release --verbose \ No newline at end of file diff --git a/templates/error.html.hbs b/templates/error.html.hbs index 5ebb631..41c5872 100644 --- a/templates/error.html.hbs +++ b/templates/error.html.hbs @@ -5,6 +5,7 @@ + Request Mirror - Error diff --git a/templates/history.html.hbs b/templates/history.html.hbs index 8a13434..eb63ce6 100644 --- a/templates/history.html.hbs +++ b/templates/history.html.hbs @@ -3,9 +3,9 @@ - + Request Mirror - History diff --git a/templates/index.html.hbs b/templates/index.html.hbs index be21e05..3b503e3 100644 --- a/templates/index.html.hbs +++ b/templates/index.html.hbs @@ -5,6 +5,7 @@ + Request Mirror - Home diff --git a/templates/ownership_registration.html.hbs b/templates/ownership_registration.html.hbs index c4271e0..4fd2f21 100644 --- a/templates/ownership_registration.html.hbs +++ b/templates/ownership_registration.html.hbs @@ -3,9 +3,9 @@ - + Request Mirror - Ownership Registration diff --git a/templates/request_details.html.hbs b/templates/request_details.html.hbs index f1a9cd7..77bf6e9 100644 --- a/templates/request_details.html.hbs +++ b/templates/request_details.html.hbs @@ -5,6 +5,7 @@ + Request Mirror - Request Details