build: Cleanup workflow action steps
This commit is contained in:
@ -72,20 +72,17 @@ jobs:
|
||||
id: setup
|
||||
with:
|
||||
version: "latest"
|
||||
- name: Run `packer init`
|
||||
- name: Prepare build environment
|
||||
id: init
|
||||
run: packer init -upgrade ./packer
|
||||
- name: Prepare dependencies and inject configuration
|
||||
run: |
|
||||
export BUILD_COMMIT=$(echo "${{ gitea.sha }}" | cut -c 1-10)
|
||||
export BUILD_SUFFIX=$(openssl rand -hex 3)
|
||||
|
||||
sed -i -e "s/<<img-password>>/${{ secrets.SSH_PASSWORD }}/g" \
|
||||
packer/preseed/UbuntuServer22.04/user-data
|
||||
packer init -upgrade ./packer
|
||||
|
||||
ansible-galaxy collection install \
|
||||
-r ansible/requirements.yml \
|
||||
-p ./ansible/collections
|
||||
|
||||
echo "BUILD_COMMIT=$(echo ${{ gitea.sha }} | cut -c 1-10)" >> $GITHUB_ENV
|
||||
echo "BUILD_SUFFIX=$(openssl rand -hex 3)" >> $GITHUB_ENV
|
||||
- name: Run `packer validate`
|
||||
id: validate
|
||||
run: |
|
||||
|
Reference in New Issue
Block a user