Enable very rudimentary CI/CD #1

Merged
Karcsesz merged 14 commits from ci-working into master 2024-03-18 01:54:16 +01:00
2 changed files with 24 additions and 19 deletions
Showing only changes of commit 63d7d34116 - Show all commits

View file

@ -0,0 +1,24 @@
on:
push:
branches:
- main
jobs:
docker:
name: docker build
runs-on: ubuntu-22.04
needs:
- test
steps:
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME}}
password: ${{ secrets.DOCKERHUB_TOKEN}}
- uses: docker/build-push-action@v5
with:
push: true
tags: karcsesz/fingerlink:latest
- uses: docker/build-push-action@v5
with:
push: true
tags: karcsesz/fingerlink:latest-nano
build-args: "editor=nano"

View file

@ -7,22 +7,3 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/rust-toolchain@stable - uses: actions/rust-toolchain@stable
- run: cargo test --all-features - run: cargo test --all-features
docker:
name: docker build
runs-on: ubuntu-22.04
needs:
- test
steps:
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME}}
password: ${{ secrets.DOCKERHUB_TOKEN}}
- uses: docker/build-push-action@v5
with:
push: false
tags: karcsesz/fingerlink:latest
- uses: docker/build-push-action@v5
with:
push: false
tags: karcsesz/fingerlink:latest-nano
build-args: "editor=nano"