mirror of
https://github.com/morbalint/kemkas.git
synced 2026-07-17 19:03:46 +00:00
maybe this will help
This commit is contained in:
@@ -42,6 +42,8 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
|
attestations: write
|
||||||
|
id-token: write
|
||||||
outputs:
|
outputs:
|
||||||
image_tag: ${{ steps.image-tag.outputs.image_tag }}
|
image_tag: ${{ steps.image-tag.outputs.image_tag }}
|
||||||
steps:
|
steps:
|
||||||
@@ -72,6 +74,8 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
|
attestations: write
|
||||||
|
id-token: write
|
||||||
outputs:
|
outputs:
|
||||||
image_tag: ${{ steps.image-tag.outputs.image_tag }}
|
image_tag: ${{ steps.image-tag.outputs.image_tag }}
|
||||||
steps:
|
steps:
|
||||||
@@ -111,24 +115,14 @@ jobs:
|
|||||||
E2E_IMAGE: ${{ needs.docker-e2e-build.outputs.image_tag }}
|
E2E_IMAGE: ${{ needs.docker-e2e-build.outputs.image_tag }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Create GitHub App installation token
|
|
||||||
id: app-token
|
|
||||||
uses: actions/create-github-app-token@v1
|
|
||||||
with:
|
|
||||||
app-id: ${{ secrets.E2E_APP_ID }}
|
|
||||||
private-key: ${{ secrets.E2E_APP_KEY }}
|
|
||||||
owner: ${{ github.repository_owner }}
|
|
||||||
repositories: |
|
|
||||||
kemkas
|
|
||||||
kemkas-backend
|
|
||||||
- name: Log in to GitHub Container Registry
|
- name: Log in to GitHub Container Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: x-access-token
|
username: ${{ github.actor }}
|
||||||
password: ${{ steps.app-token.outputs.token }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Pull images for test run
|
- name: Pull images for test run
|
||||||
run: docker compose -f docker-compose.e2e.yaml pull backend frontend e2e
|
run: docker compose -f docker-compose.e2e.yaml pull
|
||||||
- name: Run Docker Compose E2E tests
|
- name: Run Docker Compose E2E tests
|
||||||
run: docker compose -f docker-compose.e2e.yaml up --no-build --abort-on-container-exit --exit-code-from e2e e2e
|
run: docker compose -f docker-compose.e2e.yaml up --no-build --abort-on-container-exit --exit-code-from e2e e2e
|
||||||
- name: Upload Playwright HTML report
|
- name: Upload Playwright HTML report
|
||||||
@@ -148,23 +142,3 @@ jobs:
|
|||||||
- name: Tear down Docker Compose stack
|
- name: Tear down Docker Compose stack
|
||||||
if: always()
|
if: always()
|
||||||
run: docker compose -f docker-compose.e2e.yaml down -v --remove-orphans
|
run: docker compose -f docker-compose.e2e.yaml down -v --remove-orphans
|
||||||
|
|
||||||
# No longer used, and token expired.
|
|
||||||
# deploy-to-beta:
|
|
||||||
# runs-on: ubuntu-latest
|
|
||||||
# needs:
|
|
||||||
# - docker-fe-build
|
|
||||||
# steps:
|
|
||||||
# - uses: actions/checkout@v4
|
|
||||||
# with:
|
|
||||||
# repository: ${{ github.repository_owner }}/kemkas-deployment
|
|
||||||
# ref: refs/heads/main
|
|
||||||
# ssh-key: ${{ secrets.DEPLOYMENT_REPO_DEPLOY_KEY }}
|
|
||||||
# - uses: mikefarah/yq@v4
|
|
||||||
# with:
|
|
||||||
# cmd: yq -i '.spec.template.spec.containers[0].image = "${{ needs.docker-fe-build.outputs.image_tag }}"' ./kemkas-beta/kemkas-fe-deployment.yaml
|
|
||||||
# - run: |
|
|
||||||
# git config --add user.email "beta-fe-deployment-bot@kemkas.hu"
|
|
||||||
# git config --add user.name "Deployment Bot Beta FE"
|
|
||||||
# git commit -a -m "deploy ${{ needs.docker-fe-build.outputs.image_tag }}"
|
|
||||||
# git push
|
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
FROM mcr.microsoft.com/playwright:v1.59.1-noble
|
FROM mcr.microsoft.com/playwright:v1.59.1-noble
|
||||||
|
|
||||||
|
LABEL org.opencontainers.image.source = "https://github.com/morbalint/kemkas"
|
||||||
|
|
||||||
WORKDIR /work
|
WORKDIR /work
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
|
|||||||
@@ -12,5 +12,7 @@ RUN yarn build
|
|||||||
|
|
||||||
FROM nginx:1.29.7-alpine3.23 AS proxy
|
FROM nginx:1.29.7-alpine3.23 AS proxy
|
||||||
|
|
||||||
|
LABEL org.opencontainers.image.source = "https://github.com/morbalint/kemkas"
|
||||||
|
|
||||||
COPY --from=builder "/src/dist" "/usr/share/nginx/html"
|
COPY --from=builder "/src/dist" "/usr/share/nginx/html"
|
||||||
COPY ./nginx.conf /etc/nginx/nginx.conf
|
COPY ./nginx.conf /etc/nginx/nginx.conf
|
||||||
|
|||||||
Reference in New Issue
Block a user