Skip to content

fix: Do not upgrade helmrelease in pending status #136

fix: Do not upgrade helmrelease in pending status

fix: Do not upgrade helmrelease in pending status #136

Workflow file for this run

name: image
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
tags:
- "v*"
jobs:
service:
runs-on: ubuntu-latest
strategy:
matrix:
release:
- yoga
- zed
- "2023.1"
steps:
- name: Configure Buildkit
uses: docker/setup-buildx-action@v2
- name: Checkout project
uses: actions/checkout@v3
- name: Build wheels
run: make build
- name: Start HTTP server with wheels
run: python3 -m http.server 8000 --directory dist &
- name: Setup environment variables
run: |-
echo WHEEL_URL=http://$(ip addr show eth0 | grep -Po 'inet \K[\d.]+'):8000/$(ls -1 dist | grep whl) >> $GITHUB_ENV
echo PROJECT_REF=$(curl -Ls https://github.com/vexxhost/docker-openstack-magnum/raw/main/manifest.yml | yq '."${{ matrix.release }}".sha') >> $GITHUB_ENV
- name: Authenticate with Quay.io
uses: docker/login-action@v2
if: ${{ github.event_name == 'push' }}
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_ROBOT_TOKEN }}
- name: Build image
uses: docker/build-push-action@v3
with:
context: https://github.com/vexxhost/docker-openstack-magnum.git
push: ${{ github.event_name == 'push' }}
cache-from: type=gha,scope=${{ env.PROJECT_REF }}-${{ github.sha }}
cache-to: type=gha,mode=max,scope=${{ env.PROJECT_REF }}-${{ github.sha }}
network: host
tags: |-
quay.io/vexxhost/magnum-cluster-api:${{ env.PROJECT_REF }}-${{ github.sha }}
build-args: |-
BUILDER_IMAGE=quay.io/vexxhost/openstack-builder-jammy
RUNTIME_IMAGE=quay.io/vexxhost/openstack-runtime-jammy
RELEASE=${{ matrix.release }}
PROJECT=magnum
PROJECT_REPO=https://github.com/vexxhost/magnum
PROJECT_REF=${{ env.PROJECT_REF }}
DIST_PACKAGES=haproxy
PIP_PACKAGES=cryptography python-binary-memcached ${{ env.WHEEL_URL }}
- name: Promote image
uses: akhilerm/[email protected]
if: github.event_name == 'push'
with:
src: quay.io/vexxhost/magnum-cluster-api:${{ env.PROJECT_REF }}-${{ github.sha }}
dst: quay.io/vexxhost/magnum-cluster-api:${{ matrix.release }}
registry:
runs-on: ubuntu-latest
steps:
- name: Configure Buildkit
uses: docker/setup-buildx-action@v2
- name: Checkout project
uses: actions/checkout@v3
- name: Generate image metadata
id: meta
uses: docker/metadata-action@v4
with:
images: quay.io/vexxhost/magnum-cluster-api-registry
- name: Authenticate with Quay.io
uses: docker/login-action@v2
if: ${{ github.event_name == 'push' }}
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_ROBOT_TOKEN }}
- name: Build image
uses: docker/build-push-action@v3
with:
push: ${{ github.event_name == 'push' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}