-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (29 loc) · 839 Bytes
/
push.yaml
File metadata and controls
36 lines (29 loc) · 839 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Push
on:
push:
tags:
- '*'
env:
REGISTRY: ghcr.io
jobs:
build:
runs-on: ubuntu-22.04
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- name: setup Crossplane cli
uses: crossplane-contrib/setup-crossplane-action@cb8aac3f1246b19f101e7f85fd0a38623b4d5ad3 # v0.1.1
- name: Log in to the GitHub Container registry
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push xpkg
run: make push
if: ${{ github.ref == 'refs/heads/main' }} && env.REGISTRY != ''