Skip to content

Commit

Permalink
feat: move to new CI flow (#518)
Browse files Browse the repository at this point in the history
* feat: move to new CI flow

Co-Authored-By: Joschka <joschka@users.noreply.github.com>

* fix(ci): run on push & PRs
Co-authored-by: Joschka de Cuveland <joschka.decuveland@digitalservice.bund.de>

* fix(ci): checkout before running local action\n\nCo-authored-by: Joschka de Cuveland <joschka.decuveland@digitalservice.bund.de>

* fix(content release): always run on workflow trigger

* fix(content release): use new content file

* fix(docker.sh): fix function returns

* feat(Dockerfile): use npm ci & leaner app image

* feat(docker.sh): add --appFromImage & e2e test on content deploy

* fix(ci): typo

* feat(contentDeploy): install repo if latest app image fails

* fix(ci): correctly check step outcome

* feat(docker): add hashes to image labels, deploy correct prod tag

Co-Authored-By: Pram Gurusinga <9930966+pgurusinga@users.noreply.github.com>

* fix(contentDeploy): use local content for hash

Co-Authored-By: Pram Gurusinga <9930966+pgurusinga@users.noreply.github.com>

---------

Co-authored-by: Joschka <joschka@users.noreply.github.com>
Co-authored-by: Pram Gurusinga <9930966+pgurusinga@users.noreply.github.com>
  • Loading branch information
3 people authored Jan 12, 2024
1 parent c37ce4e commit 47b8103
Show file tree
Hide file tree
Showing 16 changed files with 374 additions and 525 deletions.
20 changes: 0 additions & 20 deletions .dockerignore

This file was deleted.

29 changes: 29 additions & 0 deletions .github/actions/cached-checkout-install/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: "Cached Checkout & Install"
description: "Checks out repository, downloads node, caches node_modules and installs project"
runs:
using: "composite"
steps:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20.x"
cache: "npm"
- name: Cache node modules
id: cache-npm
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
name: List the state of node modules
continue-on-error: true
run: npm list
shell: bash
- run: npm ci
shell: bash
33 changes: 0 additions & 33 deletions .github/actions/parse-content-to-file/action.yml

This file was deleted.

56 changes: 0 additions & 56 deletions .github/actions/parse-content-to-file/create_content_file.py

This file was deleted.

11 changes: 0 additions & 11 deletions .github/actions/preview-text-test/action.yml

This file was deleted.

11 changes: 0 additions & 11 deletions .github/actions/preview-text-test/test-text.sh

This file was deleted.

11 changes: 0 additions & 11 deletions .github/actions/production-text-test/action.yml

This file was deleted.

11 changes: 0 additions & 11 deletions .github/actions/production-text-test/test-text.sh

This file was deleted.

74 changes: 0 additions & 74 deletions .github/workflows/build-app.yml

This file was deleted.

Loading

0 comments on commit 47b8103

Please sign in to comment.