Skip to content

Add code checkout to staging.yaml #2

Add code checkout to staging.yaml

Add code checkout to staging.yaml #2

Workflow file for this run

name: Deploy to staging
on:
push:
branches:
- main
- redfox-workflow_rewrite
jobs:
#test:
# uses: ./.github/workflows/test.yaml
build-and-push:
runs-on: ubuntu-latest
# needs: test
steps:
- name: Checkout code
- uses: actions/checkout@v4
- name: Build backend
id: build-backend
uses: redhat-actions/buildah-build@v2
with:
image: backend
tags: staging ${{ github.sha }}
containerfiles: |
./backend/Dockerfile
#build-args: |
# BASE_PATH=/example
# STAGING=true
- name: Push to quay.io
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-backend.outputs.image }}
tags: ${{ steps.build-backend.outputs.tags }}
registry: quay.io/ohtuilmo
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}