Compare commits
7
Commits
681b36c34d
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
323c1ab6a9 | ||
|
|
d71926b967 | ||
|
|
ab1578e5b0 | ||
|
|
1edf238a6b | ||
|
|
6cdb2c8e81 | ||
|
|
42e3718fea | ||
|
|
6eb9293879 |
@@ -0,0 +1,41 @@
|
|||||||
|
name: Build and push image
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-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 }}
|
||||||
+1
-1
@@ -7,6 +7,6 @@ RUN npm run build --verbose
|
|||||||
|
|
||||||
FROM nginx:alpine
|
FROM nginx:alpine
|
||||||
COPY --from=build /app/build/ /usr/share/nginx/html
|
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
|
EXPOSE 80
|
||||||
ENTRYPOINT ["sh", "-c", "cd /usr/share/nginx/html/ && nginx -g 'daemon off;'"]
|
ENTRYPOINT ["sh", "-c", "cd /usr/share/nginx/html/ && nginx -g 'daemon off;'"]
|
||||||
+4
-1
@@ -70,5 +70,8 @@
|
|||||||
">0.2%",
|
">0.2%",
|
||||||
"not dead",
|
"not dead",
|
||||||
"not op_mini all"
|
"not op_mini all"
|
||||||
]
|
],
|
||||||
|
"devDependencies": {
|
||||||
|
"@babel/plugin-proposal-private-property-in-object": "7.21.11"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user