Skip to content

Commit

Permalink
[wip] Test building flask template
Browse files Browse the repository at this point in the history
  • Loading branch information
ipince committed Sep 12, 2024
1 parent 8ce15be commit fd1fe5c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/publish-repos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
push:
branches:
- main # When we merge to main
- rodrigo/*
tags:
- "**" # If we added a tag (used for releases)

Expand All @@ -26,8 +27,8 @@ jobs:
publish-template-images:
strategy:
matrix:
project_id: [dev-j3tpk, nonprod-j3tpk, prod-j3tpk]
template: [deno-fresh, elixir-phoenix, php-laravel, python-flask]
project_id: [dev-j3tpk] #, nonprod-j3tpk, prod-j3tpk]
template: [python-flask] #template: [deno-fresh, elixir-phoenix, php-laravel, python-flask]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -40,16 +41,16 @@ jobs:
with:
gcp_project: ${{ matrix.project_id }}
template: templates/${{ matrix.template }}
- uses: webfactory/[email protected]
if: ${{ matrix.project_id == 'prod-j3tpk' && github.ref == 'refs/heads/main' }}
with:
ssh-private-key: ${{ secrets.CODEBOT_SSH_KEY }}
- uses: ./actions/publish-code
if: ${{ matrix.project_id == 'prod-j3tpk' && github.ref == 'refs/heads/main' }}
with:
origin: ${{ github.repository }}
targets: >
templates/${{ matrix.template}}:jetify-examples/${{ matrix.template }}
# - uses: webfactory/[email protected]
# if: ${{ matrix.project_id == 'prod-j3tpk' && github.ref == 'refs/heads/main' }}
# with:
# ssh-private-key: ${{ secrets.CODEBOT_SSH_KEY }}
# - uses: ./actions/publish-code
# if: ${{ matrix.project_id == 'prod-j3tpk' && github.ref == 'refs/heads/main' }}
# with:
# origin: ${{ github.repository }}
# targets: >
# templates/${{ matrix.template}}:jetify-examples/${{ matrix.template }}

publish-repos:
# Only publish if tests pass. Right now all tests for all repos need to pass, but as the monorepo
Expand Down
2 changes: 2 additions & 0 deletions actions/publish-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ runs:
if [ ! -f Dockerfile ]; then
devbox generate dockerfile --for prod
fi
cat Dockerfile
devbox version
docker build . \
--label "repository=${{ github.repository }}" \
--label "revision=${{ github.sha }}" \
Expand Down

0 comments on commit fd1fe5c

Please sign in to comment.