2023-11-26 01:53:10 +00:00
|
|
|
name: Test build
|
|
|
|
|
2023-11-26 01:52:15 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ main ]
|
2023-11-26 01:53:10 +00:00
|
|
|
|
2023-11-26 01:52:15 +00:00
|
|
|
jobs:
|
2023-11-26 02:20:00 +00:00
|
|
|
build:
|
2025-01-19 13:41:22 +00:00
|
|
|
runs-on: [dev, amd64]
|
2023-11-26 01:52:15 +00:00
|
|
|
steps:
|
2023-11-26 02:20:00 +00:00
|
|
|
- uses: actions/checkout@v4
|
2025-01-19 22:01:34 +00:00
|
|
|
- name: docker login
|
2023-11-26 02:02:55 +00:00
|
|
|
run: |
|
2024-08-13 17:59:45 +00:00
|
|
|
docker login gitea.ceperka.net -u "${{ secrets.REPO_USERNAME }}" -p "${{ secrets.REPO_PASSWORD }}"
|
2025-01-19 22:01:34 +00:00
|
|
|
- name: Build
|
|
|
|
run: task build REPO=gitea.ceperka.net/rosti/runtime VERSION=pipeline
|
|
|
|
- name: Test
|
|
|
|
run: task test REPO=gitea.ceperka.net/rosti/runtime VERSION=pipeline
|
|
|
|
- name: Push
|
|
|
|
run: task push REPO=gitea.ceperka.net/rosti/runtime VERSION=pipeline
|
2025-01-19 21:55:11 +00:00
|
|
|
- name: Cleaning step
|
|
|
|
if: always()
|
|
|
|
run: docker stop dev_test
|
2023-11-26 01:53:10 +00:00
|
|
|
|
|
|
|
|