Skip to content

ci(pr-build): demise pre-action stage #19

ci(pr-build): demise pre-action stage

ci(pr-build): demise pre-action stage #19

Workflow file for this run

# _
# _ __ ___ _ __ ___ __ _| |_ ___ _ __
# | '__/ _ \ '_ \ / _ \/ _` | __/ _ \ '__|
# | | | __/ |_) | __/ (_| | || __/ |
# |_| \___| .__/ \___|\__,_|\__\___|_|
# |_|
#
# https://github.com/rocats/repeater-v2
#
# Copyright (C) 2023 @yqlbu
#
# This is a self-hosted software, liscensed under the MIT License.
# See /License for more information.
---
name: Build OCI Container (PR)
on:
workflow_dispatch:
pull_request:
types: [ opened, synchronize, reopened ]
jobs:
# Build Stage
build-and-push:

Check failure on line 24 in .github/workflows/pr-build.yml

View workflow run for this annotation

GitHub Actions / Build OCI Container (PR)

Invalid workflow file

The workflow is not valid. .github/workflows/pr-build.yml (Line: 24, Col: 3): The workflow must contain at least one job with no dependencies.
needs: [pre-actions]
runs-on: ubuntu-latest
env:
dockerfile: Dockerfile
image_name: daeuniverse/${{ github.event.repository.name }}
image_tag: pr-${{ needs.pre-actions.outputs.git_sha_short }}-${{ github.run_number }}
outputs:
image_tag: ${{ env.image_tag }}
steps:
- uses: actions/checkout@master
- name: Kaniko build - quay.io
id: quay_build
uses: aevea/action-kaniko@master
with:
registry: quay.io
username: daeuniverse
password: ${{ secrets.QUAY_PASS }}
image: ${{ env.image_name }}
build_file: ${{ env.dockerfile }}
tag: ${{ env.image_tag }}
tag_with_latest: true
cache: true
cache_registry: quay.io/daeuniverse/cache
extra_args: --build-arg PYTHON_VERSION=3.10
- name: Echo image uri
run: |
echo "ImageURI (quay.io): quay.io/${{ env.image_name }}:${{ env.image_tag }}"