Skip to content

chore(release-please): add private token #442

chore(release-please): add private token

chore(release-please): add private token #442

Workflow file for this run

name: Build Ansible docker images
on:
schedule:
- cron: "0 12 * * SUN" # every sunday
push:
branches:
- "**"
tags:
- "v*"
jobs:
Ansible:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Docker meta
id: docker_meta
uses: docker/metadata-action@v5
with:
images: lephare/ansible
tags: |
type=schedule,pattern=nightly
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v5
with:
context: docker
file: ./docker/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
build-args: |
ANSIBLE_DEPLOY_BRANCH=${{ github.ref_name }}
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}