Skip to content

Merge pull request #3 from influxdata/devel #13

Merge pull request #3 from influxdata/devel

Merge pull request #3 from influxdata/devel #13

Workflow file for this run

name: Build and Push latest image
on:
push:
# build and push anytime commits are merged to main
branches:
- main
jobs:
build_and_push_latest:
runs-on: ubuntu-22.04
name: Build and push latest tag from main on new commits
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
pip install -r requirements.txt
- name: Quay login
run: |
echo "${{ secrets.QUAY_TOKEN }}" | docker login quay.io -u ${{ secrets.QUAY_USERNAME }} --password-stdin
- name: Build and push image
run: |
docker buildx create --name awx-ee-buildx
docker buildx use awx-ee-buildx
ansible-builder create -v3 --output-file=Dockerfile
docker buildx build \
--push \
--platform=linux/amd64 \
--tag=${{ vars.IMAGE_REGISTRY }}:latest \
context