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

omit old os

omit old os #21

Workflow file for this run

name: docker
on:
workflow_dispatch:
push:
branches:
- "master"
jobs:
docker:
runs-on: ubuntu-latest
strategy:
matrix:
salt: [3006, 3007]
os: [22.04, 24.04]
include:
- os: 22.04
code: jammy
- os: 24.04
code: noble
steps:
- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Docker Metadata
id: docker_metadata
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/teamdfir/sift-saltstack-tester
tags: |
type=raw,value=${{ matrix.salt }}-${{ matrix.code }}
- 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
push: true
tags: ${{ steps.docker_metadata.outputs.tags }}
labels: ${{ steps.docker_metadata.outputs.labels }}
cache-to: type=inline