Build and Deploy #5
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
name: Build and Deploy | |
on: | |
push: | |
tags: | |
- 'v[0-9]+.[0-9]+.[0-9]+' | |
jobs: | |
build_and_deploy: | |
if: github.repository_owner == 'ManageIQ' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: "3.1" | |
bundler-cache: true | |
- name: Docker login | |
run: echo ${{ secrets.DOCKER_REGISTRY_PASSWORD }} | docker login docker.io --password-stdin --username ${{ secrets.DOCKER_REGISTRY_USERNAME }} | |
- name: Build | |
run: bundle exec rake production:release:build[${{ github.ref_name }}] | |
- name: Set up kubectl | |
uses: azure/setup-kubectl@v4 | |
- name: Set up ibmcloud CLI | |
uses: IBM/actions-ibmcloud-cli@v1 | |
with: | |
api_key: ${{ secrets.IBMCLOUD_API_KEY }} | |
region: us-east | |
group: manageiq | |
plugins: container-service | |
- name: Deploy | |
run: bundle exec rake production:release:deploy[${{ github.ref_name }}] |