Compare commits

...

8 Commits

Author SHA1 Message Date
323c1ab6a9 Dockerfile aktualisiert
All checks were successful
Build and push image / build (push) Successful in 20m6s
2024-02-06 17:11:49 +00:00
d71926b967 package.json aktualisiert
Some checks failed
Build and push image / build (push) Failing after 19m50s
2024-02-06 15:17:21 +00:00
ab1578e5b0 .gitea/workflows/build.yaml aktualisiert
Some checks failed
Build and push image / build (push) Has been cancelled
2024-02-06 00:02:36 +00:00
Simon Zeyer
1edf238a6b rename folder structure 2024-02-05 23:25:03 +00:00
6cdb2c8e81 .gitea / workflows / build.yaml aktualisiert 2024-02-05 23:13:36 +00:00
42e3718fea Merge pull request '.gitea / workflows / build.yaml hinzugefügt' (#2) from feature/sz/build-actions-runner into master
Reviewed-on: #2
2024-02-05 23:11:26 +00:00
681b36c34d revert de6af2d8cc48276a1b393b5ab6a6ba278bf4f761
revert Merge pull request 'feature/sz/build-actions-runner' (#1) from feature/sz/build-actions-runner into master

Reviewed-on: #1
2024-02-05 23:08:23 +00:00
de6af2d8cc Merge pull request 'feature/sz/build-actions-runner' (#1) from feature/sz/build-actions-runner into master
Reviewed-on: #1
2024-02-05 23:07:05 +00:00
4 changed files with 7 additions and 47 deletions

View File

@ -1,42 +0,0 @@
name: Build and push image
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest:docker://catthehacker/ubuntu:act-latest
container:
image: catthehacker/ubuntu:act-latest
#defaults:
# run:
# working-directory: /repo
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # all history for all branches and tags
- name: Login to gitea.simonzeyer.de Repo
uses: docker/login-action@v2
with:
registry: gitea.simonzeyer.de
username: ${{ secrets.DOCKER_REPO_USER }}
password: ${{ secrets.DOCKER_REPO_PASSWD }}
- name: Get Meta
id: meta
run: |
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT
echo REPO_VERSION=$(git describe --always | sed 's/^v//') >> $GITHUB_OUTPUT
- name: Build and push
uses: docker/build-push-action@v4
env:
ACTIONS_RUNTIME_TOKEN: '' # See https://gitea.com/gitea/act_runner/issues/119
with:
context: .
file: ./Dockerfile
push: true
tags: |
gitea.simonzeyer.de/schuelerlabor-cleverlab/smarti:${{ steps.meta.outputs.REPO_VERSION }}

View File

@ -1,12 +1,11 @@
name: Build and push image
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest:docker://catthehacker/ubuntu:act-latest
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
#defaults:
@ -39,4 +38,4 @@ jobs:
file: ./Dockerfile
push: true
tags: |
gitea.simonzeyer.de/schuelerlabor-cleverlab/smarti:${{ steps.meta.outputs.REPO_VERSION }}
gitea.simonzeyer.de/schuelerlabor-cleverlab/smarti:${{ steps.meta.outputs.REPO_VERSION }}

View File

@ -7,6 +7,6 @@ RUN npm run build --verbose
FROM nginx:alpine
COPY --from=build /app/build/ /usr/share/nginx/html
RUN chmod 755 /usr/share/nginx/html/ -rf
RUN chmod 755 /usr/share/nginx/html/ -R
EXPOSE 80
ENTRYPOINT ["sh", "-c", "cd /usr/share/nginx/html/ && nginx -g 'daemon off;'"]

View File

@ -70,5 +70,8 @@
">0.2%",
"not dead",
"not op_mini all"
]
],
"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "7.21.11"
}
}