Ansible 2.16 #17
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
release: | |
types: | |
- created | |
jobs: | |
release_latest: | |
runs-on: ubuntu-latest | |
name: Release 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:${{ github.event.release.tag_name }} | |
- 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:${{ github.event.release.tag_name }} | |
release_stable: | |
runs-on: ubuntu-latest | |
name: Release stable versions | |
needs: release_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:${{ github.event.release.tag_name }}-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:${{ github.event.release.tag_name }}-stable-${{ matrix.version }} | |
release_latest_types: | |
runs-on: ubuntu-latest | |
name: Release 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:${{ github.event.release.tag_name }}-${{ 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:${{ github.event.release.tag_name }}-${{ matrix.type }} | |
release_stable_types: | |
runs-on: ubuntu-latest | |
name: Release stable types | |
needs: release_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:${{ github.event.release.tag_name }}-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:${{ github.event.release.tag_name }}-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:${{ github.event.release.tag_name }} --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:${{ github.event.release.tag_name }} | |
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:${{ github.event.release.tag_name }}-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:${{ github.event.release.tag_name }}-stable-${{ matrix.version }} |