CON2: add hitpoint2024 groups #33
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: cicd | |
on: | |
push: | |
branches: | |
- con2 | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
env: | |
SKAFFOLD_DEFAULT_REPO: ghcr.io/con2 | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- uses: pairity/setup-cd-tools@30acb848f9ff747aff4810dac40c5cc0971f485d | |
with: | |
skaffold: '1.20.0' | |
- uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ secrets.GHCR_USERNAME }} | |
password: ${{ secrets.GHCR_PASSWORD }} | |
- uses: docker/setup-buildx-action@v1 | |
- id: build | |
run: | | |
python3 -m pip install -U pip setuptools wheel | |
python3 -m pip install emskaffolden | |
emskaffolden -- build --file-output build.json | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: build-json | |
path: build.json | |
deploy: | |
runs-on: self-hosted | |
needs: build | |
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/con2' }} | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/download-artifact@v2 | |
with: | |
name: build-json | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- uses: pairity/setup-cd-tools@30acb848f9ff747aff4810dac40c5cc0971f485d | |
with: | |
kubectl: '1.20.4' | |
skaffold: '1.20.0' | |
- uses: docker/setup-buildx-action@v1 | |
- run: | | |
python3 -m pip install -U pip setuptools wheel | |
python3 -m pip install emskaffolden | |
emskaffolden -E con2 -- deploy -n outline -a build.json | |
emskaffolden -E tracon -- deploy -n outline-tracon -a build.json | |
emskaffolden -E kuplii -- deploy -n outline-kuplii -a build.json | |
emskaffolden -E ropecon -- deploy -n outline-ropecon -a build.json |