Created action to publish test image, added test branch to rust.yml and removed upload build artifact from rust.yml
This commit is contained in:
parent
0cc94ec48a
commit
66426dd94b
|
|
@ -0,0 +1,23 @@
|
|||
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 }}
|
||||
|
|
@ -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
|
||||
|
|
@ -27,9 +27,3 @@ jobs:
|
|||
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
|
||||
|
||||
Loading…
Reference in New Issue