Compare commits
48 Commits
be9be64dc9
...
8b864524ec
| Author | SHA256 | Date | |
|---|---|---|---|
| 8b864524ec | |||
| 3ecb478a36 | |||
| 4f9f4bcf72 | |||
| 00fb149d8e | |||
| 7c180a533d | |||
| 9aad35fcd0 | |||
| 3eeeaf2e6a | |||
| cc58d7be52 | |||
| 61ee2070d3 | |||
| 4a5b136ef2 | |||
| 09124bc4a4 | |||
| f684a806d7 | |||
| 374a3638cb | |||
| bc43124b16 | |||
| 10831d150f | |||
| 6ed71c65fd | |||
| 0442eea2c4 | |||
| 340226cbfd | |||
| d0318b3c8c | |||
| 2304a6d32d | |||
| 4148c94a29 | |||
| 35c671aa98 | |||
| 2bf7193d66 | |||
| 4e44a886b7 | |||
| 5ff2553007 | |||
| 367f3096ef | |||
| 559f86fdab | |||
| eedd2b6d91 | |||
| 2de223da7c | |||
| 131e549841 | |||
| da6ee07762 | |||
| 8f4b6dd439 | |||
| cb5e9f2d2c | |||
| cc36b83c0c | |||
| fa2bd5788c | |||
| f25a09cd78 | |||
| 260637f16c | |||
| 49a0c9004f | |||
| e840f94eff | |||
| dd4c0544cc | |||
| 4742754349 | |||
| a773032a8e | |||
| 728755443b | |||
| 6b7eebbf45 | |||
| 705b803c4a | |||
| 234f03945d | |||
| d75005941d | |||
| 95b9023a8e |
30
.gitea/workflows/release-tag.yml
Normal file
30
.gitea/workflows/release-tag.yml
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
name: build-docker-imge
|
||||||
|
on:
|
||||||
|
- push
|
||||||
|
- pull_request
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build the docker container
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: "Print env"
|
||||||
|
run: echo WORKSPACE
|
||||||
|
- name: "Git clone"
|
||||||
|
run: git clone ${{ gitea.server_url }}/${{ gitea.repository }}.git .
|
||||||
|
- name: "LS"
|
||||||
|
run: ls -lisa
|
||||||
|
- name: "LS ECHO"
|
||||||
|
run: echo "$(ls)" "${{ gitea.repository }}" "${{ gitea.ref_name }}" "${{ gitea.sha }}"
|
||||||
|
- name: "Git checkout"
|
||||||
|
run: git checkout "${{ gitea.sha }}"
|
||||||
|
- uses: aevea/action-kaniko@master
|
||||||
|
name: Run Kaniko to build our docker container.
|
||||||
|
with:
|
||||||
|
image: kocoded/gitea-workspaces/ubuntu-vscode-node
|
||||||
|
tag: ${{ gitea.workflow_sha }}
|
||||||
|
tag_with_latest: true
|
||||||
|
registry: git.kocoder.xyz
|
||||||
|
username: ${{ secrets.CI_RUNNER_USER }}
|
||||||
|
password: ${{ secrets.CI_RUNNER_TOKEN }}
|
||||||
|
build_file: ubuntu-vscode-node/Dockerfile
|
||||||
@ -20,7 +20,7 @@ RUN useradd -ms /bin/bash kocoded-workspaces -p "$(openssl passwd -1 ubuntu)"
|
|||||||
RUN usermod -aG sudo kocoded-workspaces
|
RUN usermod -aG sudo kocoded-workspaces
|
||||||
RUN systemctl enable code-server@kocoded-workspaces
|
RUN systemctl enable code-server@kocoded-workspaces
|
||||||
|
|
||||||
COPY vscode-config.yaml /home/kocoded-workspaces/.config/code-server/config.yaml
|
COPY ubuntu-vscode-node/vscode-config.yaml /home/kocoded-workspaces/.config/code-server/config.yaml
|
||||||
RUN chown -R kocoded-workspaces /home/kocoded-workspaces
|
RUN chown -R kocoded-workspaces /home/kocoded-workspaces
|
||||||
|
|
||||||
EXPOSE 22
|
EXPOSE 22
|
||||||
|
|||||||
Reference in New Issue
Block a user