Deploy #5
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: Deploy | |
on: | |
workflow_dispatch: | |
env: | |
TAG_BASE: ghcr.io/${{ github.repository }} | |
jobs: | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Login to GHCR | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ github.token }} | |
- name: Setup Flux CLI | |
uses: fluxcd/flux2/[email protected] | |
with: | |
token: ${{ github.token }} | |
version: '2.1.0' | |
- name: Push manifests | |
run: | | |
flux push artifact oci://$TAG_BASE/manifests:test \ | |
--path="kube" \ | |
--source="$(git config --get remote.origin.url)" \ | |
--revision="$(git tag --points-at HEAD)/$(git rev-parse HEAD)" |