mirror of
https://github.com/aleleba/aleleba-vscode-dockerfile-configuration.git
synced 2026-07-04 06:20:56 -06:00
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
69e52bcac1
|
|||
|
9a998f3e0c
|
|||
|
48ca077a44
|
|||
|
6186b16503
|
|||
|
6131b86b48
|
|||
|
8080ba8110
|
|||
|
cfe27a3e86
|
|||
|
bfeb1e8a08
|
14
.github/workflows/main-workflow.yml
vendored
14
.github/workflows/main-workflow.yml
vendored
@@ -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()
|
||||||
|
|||||||
@@ -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/*
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
3.2.15
|
3.2.23
|
||||||
|
|||||||
Reference in New Issue
Block a user