chore(deps): bump idna in /src/containers/image-super-resolution/model #1175
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: build Containers | |
on: | |
pull_request: {} | |
push: {} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
outputs: | |
self_mutation_happened: ${{ steps.self_mutation.outputs.self_mutation_happened }} | |
env: | |
CI: "true" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
- name: Setup Node.js | |
uses: actions/setup-node@v2.2.0 | |
with: | |
node-version: 14.17.0 | |
- name: Install dependencies | |
run: yarn install && npx projen | |
- name: build | |
run: yarn build-containers | |
- name: Build the Docker image | |
run: |- | |
for f in cdk.out/*; do | |
if [ -d "$f" ] && [ -f "$f/Dockerfile" ]; then | |
echo $f/Dockerfile | |
docker build $f --file $f/Dockerfile --tag build-image:$(date +%s) | |
fi | |
done | |
self-mutation: | |
needs: build | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
if: always() && needs.build.outputs.self_mutation_happened && !(github.event.pull_request.head.repo.full_name != github.repository) | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.PROJEN_GITHUB_TOKEN }} | |
ref: ${{ github.event.pull_request.head.ref }} | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
- name: Download patch | |
uses: actions/download-artifact@v2 | |
with: | |
name: .repo.patch | |
path: ${{ runner.temp }} | |
- name: Apply patch | |
run: '[ -s ${{ runner.temp }}/.repo.patch ] && git apply ${{ runner.temp }}/.repo.patch || echo "Empty patch. Skipping."' | |
- name: Set git identity | |
run: |- | |
git config user.name "github-actions" | |
git config user.email "github-actions@github.com" | |
- name: Push changes | |
run: |2- | |
git add . | |
git commit -s -m "chore: self mutation" | |
git push origin HEAD:${{ github.event.pull_request.head.ref }} |