Compare commits

...

8 Commits

3 changed files with 15 additions and 3 deletions

View File

@@ -14,19 +14,31 @@ jobs:
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1 uses: docker/setup-buildx-action@v1
# 🔑 Login to DockerHub
- name: Login to DockerHub - name: Login to DockerHub
uses: docker/login-action@v1 uses: docker/login-action@v1
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
# 🔑 Login to Gitea Registry
- name: Login to Gitea Registry
uses: docker/login-action@v1
with:
registry: gitea.p-lao.com
username: aleleba
password: ${{ secrets.GITEA_API_TOKEN }}
# 🚀 Build and push to BOTH registries
- name: Build and push - name: Build and push
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
with: with:
context: . context: .
push: true push: true
tags: aleleba/vscode:latest
platforms: linux/amd64,linux/arm64 platforms: linux/amd64,linux/arm64
tags: |
aleleba/vscode:latest
gitea.p-lao.com/aleleba/vscode:latest
- name: Trigger workflow in Gitea - name: Trigger workflow in Gitea
if: success() if: success()

View File

@@ -76,7 +76,7 @@ fi
if [ "$HOME_USER" != "$(whoami)" ]; then if [ "$HOME_USER" != "$(whoami)" ]; then
exec sudo -u $HOME_USER bash -c "source /etc/environment; /usr/bin/entrypoint.sh" exec sudo -u $HOME_USER bash -c "source /etc/environment; /usr/bin/entrypoint.sh"
else else
sudo chown -R ${HOME_USER} /home/${HOME_USER} sudo find "/home/${HOME_USER}" -xdev -exec chown "${HOME_USER}" {} + 2>/dev/null || true
if [ -d "/home/${HOME_USER}/.ssh" ]; then if [ -d "/home/${HOME_USER}/.ssh" ]; then
sudo chmod 755 /home/${HOME_USER}/.ssh sudo chmod 755 /home/${HOME_USER}/.ssh
sudo chmod -R 600 /home/${HOME_USER}/.ssh/* sudo chmod -R 600 /home/${HOME_USER}/.ssh/*

View File

@@ -1 +1 @@
3.2.15 3.2.23