Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 0 additions & 72 deletions .github/workflows/ansible-lint.yml

This file was deleted.

50 changes: 50 additions & 0 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Build OpenStack image

on:
pull_request:
branch:
- test-action

jobs:
build_image:
name: Build OpenStack image
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v3

- name: Set up Python 3.6
uses: actions/setup-python@v2
with:
python-version: 3.6

- name: Install necessary packages
run: |
python3 -m pip install --upgrade pip
pip install ansible s3cmd
- name: Clone packer repo
run: |
git clone https://gitlab.rc.uab.edu/rc/packer-openstack-hpc-image.git

- name: Get packer variables file
run: |
cd packer-openstack-hpc-image
cp openstack.pkrvars.hcl{.example,}

- name: Validate Template
uses: hashicorp/packer-github-actions@master
with:
command: validate
arguments: -syntax-only
target: openstack
working_directory: packer-openstack-hpc-image

- name: Build Artifact
uses: hashicorp/packer-github-actions@master
with:
command: build
arguments: "-color=false -on-error=abort"
target: openstack
working_directory: packer-openstack-hpc-image
env:
PACKER_LOG: 1