Skip to content

build latest

build latest #192

Workflow file for this run

---
name: build latest
# Actions on the main/master branch for every change.
# -----------------
# Control variables (GitHub Secrets)
# -----------------
#
# At the GitHub 'organisation' or 'project' level you must have the following
# GitHub 'Repository Secrets' defined (i.e. via 'Settings -> Secrets'): -
#
# DOCKERHUB_USERNAME
# DOCKERHUB_TOKEN
#
# -----------
# Environment (GitHub Environments)
# -----------
#
# Environment (n/a)
on:
push:
branches:
- 'main'
schedule:
# Build daily at 6:12am...
- cron: '12 6 * * *'
jobs:
build-latest:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r build-requirements.txt
pip install -r requirements.txt
ansible-galaxy install -r requirements.yaml
- name: Lint
run: |
pre-commit run --all-files
pylint operator/*.py
ansible-lint
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: operator
platforms: linux/amd64,linux/arm64
push: true
tags: informaticsmatters/data-manager-job-operator:latest