Skip to content

chore(main): release 0.18.0 (#383) #804

chore(main): release 0.18.0 (#383)

chore(main): release 0.18.0 (#383) #804

Workflow file for this run

name: image
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
on:
workflow_dispatch:
inputs:
image_push:
type: boolean
description: 'Push images to Container Registry'
required: false
default: false
pull_request:
paths-ignore:
- "docs/**"
- README.md
push:
branches:
- main
tags:
- "v*"
paths-ignore:
- "docs/**"
- README.md
jobs:
## NOTE(okozachenko1203): Disable this job for now.
# service:
# runs-on: ubuntu-latest
# steps:
# - uses: earthly/actions-setup@v1
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# - name: Checkout project
# uses: actions/checkout@v3
# - name: Authenticate with Quay.io
# uses: docker/login-action@v2
# if: ${{ github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && inputs.image_push == true) }}
# with:
# registry: quay.io
# username: ${{ secrets.QUAY_USERNAME }}
# password: ${{ secrets.QUAY_ROBOT_TOKEN }}
# - name: Build image
# run: earthly +image --GIT_SHA ${{ github.sha }}
# env:
# EARTHLY_CI: true
# EARTHLY_PUSH: "${{ github.event_name == 'push' }}"
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' || (github.event_name == 'workflow_dispatch' && inputs.image_push == true) }}
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_ROBOT_TOKEN }}
- name: Build image
uses: docker/build-push-action@v3
with:
target: registry
push: ${{ github.event_name == 'push' || inputs.image_push == true }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}