diff --git a/.github/workflows/publish-repos.yml b/.github/workflows/publish-repos.yml index e74abd1..f2b36aa 100644 --- a/.github/workflows/publish-repos.yml +++ b/.github/workflows/publish-repos.yml @@ -11,6 +11,7 @@ on: push: branches: - main # When we merge to main + - rodrigo/* tags: - "**" # If we added a tag (used for releases) @@ -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 @@ -40,16 +41,16 @@ jobs: with: gcp_project: ${{ matrix.project_id }} template: templates/${{ matrix.template }} - - uses: webfactory/ssh-agent@v0.9.0 - 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/ssh-agent@v0.9.0 +# 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 diff --git a/actions/publish-image/action.yml b/actions/publish-image/action.yml index a4a9f2b..8802351 100644 --- a/actions/publish-image/action.yml +++ b/actions/publish-image/action.yml @@ -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 }}" \