optimize workflow
This commit is contained in:
parent
01abc8b2f7
commit
52a761a8a2
@ -8,27 +8,12 @@ on:
|
||||
|
||||
jobs:
|
||||
CreateImage:
|
||||
runs-on: edge_pena_monitoring1
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: http://gitea.pena:3000/PenaDevops/actions.git/checkout@v1
|
||||
|
||||
- name: Login to registry
|
||||
run: |
|
||||
podman login -u "${{ secrets.REGISTRY_USER }}" -p "${{ secrets.REGISTRY_PASSWORD }}" gitea.pena
|
||||
|
||||
- name: Build image
|
||||
run: |
|
||||
IMAGE_NAME="gitea.pena/${{ gitea.repository }}/tests:${{ gitea.run_id }}"
|
||||
echo "IMAGE_NAME=$IMAGE_NAME" >> $GITHUB_ENV
|
||||
podman build -t "$IMAGE_NAME" .
|
||||
|
||||
- name: Push image
|
||||
run: |
|
||||
podman push "$IMAGE_NAME"
|
||||
outputs:
|
||||
image-url: ${{ env.IMAGE_NAME }}
|
||||
|
||||
uses: http://gitea.pena/PenaDevops/actions.git/.gitea/workflows/build-image.yml@v1.1.6-p
|
||||
with:
|
||||
runner: edge_pena_monitoring1
|
||||
secrets:
|
||||
REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
|
||||
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
Tests:
|
||||
needs:
|
||||
- CreateImage
|
||||
|
Loading…
Reference in New Issue
Block a user