Better test workflow
This commit is contained in:
parent
ef43ec73ad
commit
c6d7126d2a
2 changed files with 13 additions and 7 deletions
10
.github/workflows/release.yml
vendored
10
.github/workflows/release.yml
vendored
|
@ -25,9 +25,11 @@ jobs:
|
|||
- name: Set version from input
|
||||
if: github.event_name == 'workflow_dispatch'
|
||||
run: echo "TAG_NAME=${{ github.event.inputs.version }}" >> $GITHUB_ENV
|
||||
- name: Registry login
|
||||
run: docker login gitea.ceperka.net -u "${{ secrets.HARBOR_REPO_USERNAME }}" -p "${{ secrets.HARBOR_REPO_PASSWORD }}"
|
||||
- name: Final build
|
||||
run: |
|
||||
docker login gitea.ceperka.net -u "${{ secrets.HARBOR_REPO_USERNAME }}" -p "${{ secrets.HARBOR_REPO_PASSWORD }}"
|
||||
task squashed REPO=harbor.rosti.cz/rosti/runtime VERSION=${{ env.TAG_NAME }}
|
||||
task push REPO=harbor.rosti.cz/rosti/runtime VERSION=${{ env.TAG_NAME }}
|
||||
run: task squashed REPO=harbor.rosti.cz/rosti/runtime VERSION=${{ env.TAG_NAME }}
|
||||
- name: Push:
|
||||
run: task push REPO=harbor.rosti.cz/rosti/runtime VERSION=${{ env.TAG_NAME }}
|
||||
|
||||
|
||||
|
|
10
.github/workflows/test.yml
vendored
10
.github/workflows/test.yml
vendored
|
@ -9,11 +9,15 @@ jobs:
|
|||
runs-on: [dev, amd64]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Test build
|
||||
- name: docker login
|
||||
run: |
|
||||
# echo "${{ secrets.repo_password }}" | podman login -u $USERNAME --password-stdin $REPO
|
||||
docker login gitea.ceperka.net -u "${{ secrets.REPO_USERNAME }}" -p "${{ secrets.REPO_PASSWORD }}"
|
||||
task pipeline REPO=gitea.ceperka.net/rosti/runtime VERSION=pipeline
|
||||
- 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
|
||||
- name: Cleaning step
|
||||
if: always()
|
||||
run: docker stop dev_test
|
||||
|
|
Loading…
Reference in a new issue