Merge pull request #35 from krumIO/feat/APPLAUNCHER-31__sorting_selec… #50
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
name: Build and release container to registry | |
on: | |
push: | |
branches: | |
- main | |
env: | |
REGISTRY: ghcr.io | |
jobs: | |
build: | |
name: Build container image | |
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request' | |
runs-on: ubuntu-latest | |
permissions: write-all | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Configure Git | |
run: | | |
git config user.name "${{ github.actor }}" | |
git config user.email "${{ github.actor }}@users.noreply.github.com" | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Setup Helm | |
uses: azure/setup-helm@v3 | |
with: | |
version: v3.8.0 | |
- name: Setup yq | |
uses: chrisdickinson/[email protected] | |
with: | |
yq-version: v4.28.2 | |
- name: Setup Nodejs and npm | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '16' | |
- name: Setup yarn | |
run: npm install -g yarn | |
- name: Setup Nodejs with yarn caching | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '16' | |
cache: yarn | |
- name: Install dependencies | |
run: yarn | |
- name: Build and push UI image | |
run: | | |
yarn publish-pkgs -cp -r ${{ env.REGISTRY }} -o $(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]') |