Skip to content

chore(deps): update docker/setup-buildx-action action to v3 #96

chore(deps): update docker/setup-buildx-action action to v3

chore(deps): update docker/setup-buildx-action action to v3 #96

---
name: Build ansible base container image
"on":
workflow_dispatch:
push:
paths:
- .github/workflows/build-ansible-base-container-image.yml
- environments/ansible/base/**
branches:
- main
pull_request:
paths:
- .github/workflows/build-ansible-base-container-image.yml
- environments/ansible/base/**
jobs:
build-ansible-base-container-image:
runs-on: ubuntu-latest
strategy:
matrix:
version:
- 7.1.0
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup docker
uses: docker/setup-buildx-action@v3
- name: Login to container registry
uses: docker/login-action@v2
with:
registry: ${{ secrets.DOCKER_REGISTRY }}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
if: github.ref == 'refs/heads/main'
- name: Build container image
run: scripts/build.sh
env:
DOCKER_REGISTRY: ${{ secrets.DOCKER_REGISTRY }}
IMAGE: ansible/base
REPOSITORY: thecloudsphere/ansible/base
VERSION: ${{ matrix.version }}
- name: Push container image
run: |
scripts/push.sh
env:
DOCKER_REGISTRY: ${{ secrets.DOCKER_REGISTRY }}
IMAGE: ansible/base
REPOSITORY: thecloudsphere/ansible/base
VERSION: ${{ matrix.version }}
if: |
github.repository == 'thecloudsphere/registry' &&
github.ref == 'refs/heads/main'