updating to python3.11 (#309) #498
This file contains hidden or 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: Docker Image CI | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| test_list: | |
| description: Only run tests that match the regular expression | |
| default: "" | |
| required: false | |
| push: | |
| branches: ['main'] | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@main | |
| - name: Add krknctl metadata to Dockerfiles | |
| run: | | |
| bash build.sh | |
| - name: Build the Docker images | |
| run: docker compose build --parallel | |
| - name: Login in quay | |
| if: ${{ github.ref == 'refs/heads/main' }} | |
| run: docker login quay.io -u ${QUAY_USER} -p ${QUAY_TOKEN} | |
| env: | |
| QUAY_USER: ${{ secrets.QUAY_USERNAME }} | |
| QUAY_TOKEN: ${{ secrets.QUAY_PASSWORD }} | |
| - name: Push the Docker images | |
| if: ${{ github.ref == 'refs/heads/main' }} | |
| run: docker compose push | |
| - name: Call repo lambda | |
| if: ${{ github.ref == 'refs/heads/main'}} | |
| run: | | |
| curl --location --request POST '${{ secrets.LAMBDA_URL }}' --header 'Authorization: Bearer ${{ secrets.LAMBDA_TOKEN }}' | |