ci(pr-build): demise pre-action stage #19
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# _ | ||
# _ __ ___ _ __ ___ __ _| |_ ___ _ __ | ||
# | '__/ _ \ '_ \ / _ \/ _` | __/ _ \ '__| | ||
# | | | __/ |_) | __/ (_| | || __/ | | ||
# |_| \___| .__/ \___|\__,_|\__\___|_| | ||
# |_| | ||
# | ||
# 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 GitHub Actions / Build OCI Container (PR)Invalid workflow file
|
||
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 }}" | ||