Skip to content

Merge pull request #78 from redhat-appdev-practice/Issue-77_-_Fix_syn… #88

Merge pull request #78 from redhat-appdev-practice/Issue-77_-_Fix_syn…

Merge pull request #78 from redhat-appdev-practice/Issue-77_-_Fix_syn… #88

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Build And Publish Container
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the trunk branch
on:
push:
branches: [ trunk ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: 'v20.11.0'
- name: Build VitePress Static Content
run: npm install; npm run docs:build
- name: Docker Login
# You may pin to the exact commit or the version.
# uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
uses: docker/login-action@v2
with:
registry: 'quay.io'
username: ${{ secrets.QUAY_USER }}
password: ${{ secrets.QUAY_PASS }}
- name: Build container image and push to Quay
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: |
quay.io/cloud-native-runtimes/cnad-vuepress:latest
quay.io/cloud-native-runtimes/cnad-vuepress:${{ github.run_id }}