Skip to content

Build and Push latest image #104

Build and Push latest image

Build and Push latest image #104

Workflow file for this run

name: Build and Push latest image
on:
push:
# build and push anytime commits are merged to main
branches:
- main
schedule:
# build every month
- cron: '0 0 1 * *'
jobs:
latest:
runs-on: ubuntu-latest
name: Build latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox
- name: Build image
env:
DOCKER_BUILDKIT: 1
run: |
tox -e docker -- --tag=quay.io/lumarel/ee-default --tag=quay.io/lumarel/ee-default:latest
- name: Push images
run: |
echo "${{ secrets.QUAY_TOKEN }}" | docker login quay.io -u ${{ secrets.QUAY_USERNAME }} --password-stdin
docker push quay.io/lumarel/ee-default:latest
stable:
runs-on: ubuntu-latest
name: Build stable versions
needs: latest
strategy:
matrix:
version:
- "2.14"
- "2.15"
- "2.16"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox
- name: Build image
env:
DOCKER_BUILDKIT: 1
run: |
tox -e docker -- --tag=quay.io/lumarel/ee-default --tag=quay.io/lumarel/ee-default:stable-${{ matrix.version }} --file=execution-environment-${{ matrix.version }}.yml
- name: Push images
run: |
echo "${{ secrets.QUAY_TOKEN }}" | docker login quay.io -u ${{ secrets.QUAY_USERNAME }} --password-stdin
docker push quay.io/lumarel/ee-default:stable-${{ matrix.version }}
latest_types:
runs-on: ubuntu-latest
name: Build latest types
strategy:
matrix:
type:
- cloud
- infra
- infradev
- network
- storage
- sync
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox
- name: Build image
env:
DOCKER_BUILDKIT: 1
run: |
tox -e docker -- --tag=quay.io/lumarel/ee-default --tag=quay.io/lumarel/ee-default:latest-${{ matrix.type }} --file=execution-environment-${{ matrix.type }}.yml
- name: Push images
run: |
echo "${{ secrets.QUAY_TOKEN }}" | docker login quay.io -u ${{ secrets.QUAY_USERNAME }} --password-stdin
docker push quay.io/lumarel/ee-default:latest-${{ matrix.type }}
stable_types:
runs-on: ubuntu-latest
name: Build stable types
needs: latest_types
strategy:
matrix:
version:
- "2.14"
- "2.15"
- "2.16"
type:
- cloud
- infra
- network
- storage
- sync
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox
- name: Build image
env:
DOCKER_BUILDKIT: 1
run: |
tox -e docker -- --tag=quay.io/lumarel/ee-default --tag=quay.io/lumarel/ee-default:stable-${{ matrix.version }}-${{ matrix.type }} --file=execution-environment-${{ matrix.version }}-${{ matrix.type }}.yml
- name: Push images
run: |
echo "${{ secrets.QUAY_TOKEN }}" | docker login quay.io -u ${{ secrets.QUAY_USERNAME }} --password-stdin
docker push quay.io/lumarel/ee-default:stable-${{ matrix.version }}-${{ matrix.type }}
latest_lint:
runs-on: ubuntu-latest
name: Build lint latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox
- name: Build image
env:
DOCKER_BUILDKIT: 1
run: |
tox -e docker -- --tag=quay.io/lumarel/ee-lint --tag=quay.io/lumarel/ee-lint:latest --file=execution-environment-lint.yml
- name: Push images
run: |
echo "${{ secrets.QUAY_TOKEN }}" | docker login quay.io -u ${{ secrets.QUAY_USERNAME }} --password-stdin
docker push quay.io/lumarel/ee-lint:latest
stable_lint:
runs-on: ubuntu-latest
name: Build stable lint versions
needs: latest_lint
strategy:
matrix:
version:
- "2.14"
- "2.15"
- "2.16"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox
- name: Build image
env:
DOCKER_BUILDKIT: 1
run: |
tox -e docker -- --tag=quay.io/lumarel/ee-lint --tag=quay.io/lumarel/ee-lint:stable-${{ matrix.version }} --file=execution-environment-${{ matrix.version }}-lint.yml
- name: Push images
run: |
echo "${{ secrets.QUAY_TOKEN }}" | docker login quay.io -u ${{ secrets.QUAY_USERNAME }} --password-stdin
docker push quay.io/lumarel/ee-lint:stable-${{ matrix.version }}