packer-images/.gitea/workflows/deploy.yaml
Ben Vincent 6f0d10c99e
All checks were successful
Build / build (pull_request) Successful in 33s
feat: add build workflows
- enable fetch-depth for code_checkout
- fetch master branch before checking for changed files
- ensure the clean target is called with the default
2025-01-25 17:08:47 +11:00

39 lines
929 B
YAML

name: Deploy
on:
push:
branches:
- master
jobs:
build:
runs-on: almalinux-8
container:
image: git.query.consul/unkin/almalinux8:latest
options: --privileged
steps:
- name: Set up environment
run: |
dnf install -y yum-utils
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
dnf module enable -y nodejs:20
dnf install -y docker-ce-cli make bash git nodejs
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Fetch master branch
run: |
git fetch origin master:master
- name: Run Packer Builds
env:
VAULT_ROLEID: ${{ secrets.PACKER_BUILDER_VAULT_ROLEID }}
DOCKER_USERNAME: ${{ secrets.UPLOAD_USER }}
DOCKER_PASSWORD: ${{ secrets.UPLOAD_PASS }}
run: |
make