Skip to content

Ad GHA workflows

Ad GHA workflows #1

Workflow file for this run

name: Test and deploy to staging
on:
push:
branches:
- master
jobs:
test:
uses: ./.github/workflows/test.yml

Check failure on line 10 in .github/workflows/staging.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/staging.yml

Invalid workflow file

error parsing called workflow ".github/workflows/staging.yml" -> "./.github/workflows/test.yml" : failed to fetch workflow: workflow was not found.
build-and-push:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v3
- name: Build image
id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: grapa
tags: staging ${{ github.sha }}
containerfiles: |
./Dockerfile
build-args: |
BASE_PATH=/grapa
GIT_SHA=${{ github.sha }}
STAGING=true
- name: Push to quay.io
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
registry: quay.io/toska
username: toska+github
password: ${{ secrets.QUAY_IO_TOKEN }}