ci: always run make build #6
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: Push | |
on: | |
push: | |
tags: | |
- '*' | |
workflow_dispatch: | |
inputs: | |
channel: | |
description: release channel | |
required: true | |
default: stable | |
version: | |
description: release version | |
required: true | |
default: current | |
env: | |
REGISTRY: ghcr.io | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: setup Crossplane cli | |
uses: crossplane-contrib/xpkg-action@master | |
with: | |
channel: ${{ github.event.inputs.channel }} | |
version: ${{ github.event.inputs.version }} | |
command: -h | |
- name: Log in to the GitHub Container registry | |
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Push xpkg | |
run: make push | |
if: ${{ github.ref == 'refs/heads/main' }} && env.UPBOUND_MARKETPLACE_PUSH_ROBOT_USR != '' | |
env: | |
CROSSPLANE: './crossplane' |