Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
overhaul and support arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
ekristen committed Jan 10, 2025
1 parent 85bbe1f commit f741e1e
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 29 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,17 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
salt: [3004, 3005]
os: [18.04, 20.04, 22.04]
salt: [3006, 3007]
os: [22.04, 24.04]
include:
- salt: 3004
type: legacy
- salt: 3005
type: onedir
- os: 18.04
code: bionic
- os: 20.04
code: focal
- os: 22.04
code: jammy
exclude:
- salt: 3004
os: 22.04
- salt: 3005
os: 18.04
- os: 24.04
code: noble

steps:
- name: Set up QEMU
Expand All @@ -53,11 +46,12 @@ jobs:
- name: Build and push
uses: docker/build-push-action@v3
with:
platforms: linux/amd64,linux/arm64
build-args: |
SALTVERSION=${{ matrix.salt }}
OSVERSION=${{ matrix.os }}
OSCODE=${{ matrix.code }}
file: ./sift-saltstack-tester/Dockerfile.${{ matrix.type }}
file: ./sift-saltstack-tester/Dockerfile
push: true
tags: ${{ steps.docker_metadata.outputs.tags }}
labels: ${{ steps.docker_metadata.outputs.labels }}
Expand Down
17 changes: 17 additions & 0 deletions sift-saltstack-tester/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
ARG OSVERSION=24.04

FROM ubuntu:$OSVERSION

ARG OSVERSION=24.04
ARG SALTVERSION=3006
ARG OSCODE=noble

ENV DEBIAN_FRONTEND=noninteractive

RUN \
apt-get update && \
apt-get install -y wget gnupg git && \
wget -O - "https://packages.broadcom.com/artifactory/api/security/keypair/SaltProjectKey/public" | tee /etc/apt/keyrings/salt-archive-keyring.pgp && \
wget -O - "https://github.com/saltstack/salt-install-guide/releases/latest/download/salt.sources" | tee /etc/apt/sources.list.d/salt.sources && \
apt-get update && \
apt-get install -y salt-common
17 changes: 0 additions & 17 deletions sift-saltstack-tester/Dockerfile.onedir

This file was deleted.

0 comments on commit f741e1e

Please sign in to comment.