update
This commit is contained in:
parent
4dc4ffe631
commit
6ad482d837
28
.github/workflows/golden-image-pipeline.yaml
vendored
Normal file
28
.github/workflows/golden-image-pipeline.yaml
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
name: Create AWS Golden AMI
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- '.github/workflows/packer/build.sh'
|
||||||
|
- '.github/workflows/packer/bootstrap.sh'
|
||||||
|
- '.github/workflows/packer/ubuntu-os-ami.json'
|
||||||
|
- '.github/workflows/packer/ubuntu-os-ami.json.pkr.hcl'
|
||||||
|
- '.github/workflows/packer/golden-image-pipeline.yaml'
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
create-golden-ami:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Install Packer
|
||||||
|
run: sudo apt-get install -y zip unzip jq
|
||||||
|
env:
|
||||||
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
|
- name: Download Packer
|
||||||
|
run: wget https://releases.hashicorp.com/packer/1.6.2/packer_1.6.2_linux_amd64.zip
|
||||||
|
shell: bash
|
||||||
|
- name: Create Golden image
|
||||||
|
run: packer/build.sh
|
||||||
|
shell: bash
|
||||||
@ -1,3 +1,5 @@
|
|||||||
git clone https://github.com/fluxcd/image-automation-controller.git --branch v0.24.0 && cd image-automation-controller && git switch -c main && rm -rvf .git*
|
## Howto
|
||||||
|
|
||||||
|
|
||||||
|
1. clone repo
|
||||||
|
2. create repo Actions secrets and variables: HELM_REPO_PASSWORD
|
||||||
|
3. push your code will be tigger github ci pipeline
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user