Skip to content

Merge pull request #174 from arillso/dependabot/pip/pip-24.0 #130

Merge pull request #174 from arillso/dependabot/pip/pip-24.0

Merge pull request #174 from arillso/dependabot/pip/pip-24.0 #130

Workflow file for this run

name: Publish
on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
strategy:
matrix:
version:
- "2.16.2"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/arillso/ansible
arillso/ansible
tags: |
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'master') }}
type=raw,value=${{ matrix.version }}
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: sbaerlocher
password: ${{ secrets.DOCKER_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
build-args: ANSIBLE_VERSION=${{ matrix.version }}
push: true
platforms: linux/amd64,linux/arm64
tags: |
${{ steps.meta.outputs.tags }}