Skip to content

Commit

Permalink
Merge pull request #27 from ubunchuu-truong-us/hotfix/workflow
Browse files Browse the repository at this point in the history
fix: workflow build image
  • Loading branch information
thangbuiq authored Feb 9, 2024
2 parents 5631f6d + a3d2a89 commit c064816
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/dependabot.auto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ jobs:
- name: Auto approve
uses: actions/github-script@v4
with:
script: |
const result = await github.pulls.createReview({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.issue.number,
event: "APPROVE"
})
console.log(result.status)
script: |
const result = await github.pulls.createReview({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.issue.number,
event: "APPROVE"
})
console.log(result.status)
automerge:
name: Auto merge after successful checks
Expand Down
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
# Use the base image
# DO NOT CHANGE THE BASE IMAGE
FROM mcr.microsoft.com/devcontainers/base:ubuntu-22.04

# DO NOT CHANGE THE DEFAULT USER
ARG DOCKERUSER=vscode

# Config sudoers and assign permission to non-root user
RUN \
echo '${DOCKERUSER} ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers && \
mkdir -p /home/${DOCKERUSER}/.local/bin /home/${DOCKERUSER}/.config && \
chown -R ${DOCKERUSER} /home/${DOCKERUSER}/

# Install Node.js 18
RUN \
apt-get update && apt-get install --no-install-recommends -y git curl sudo wget vim && \
curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
apt-get update && apt-get install --no-install-recommends -y nodejs && \
apt-get update && apt-get install --no-install-recommends -y nodejs git sudo vim && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Install yarn
Expand All @@ -20,7 +21,7 @@ RUN \

USER ${DOCKERUSER}

# Install starship for non-root user
# Install starship for non-root user with pure prompt
RUN \
sh -c "$(curl -fsSL https://starship.rs/install.sh)" -- --yes -b /home/${DOCKERUSER}/.local/bin && \
echo 'eval "$(starship init bash && starship preset pure-preset -o ~/.config/starship.toml)"' >> /home/${DOCKERUSER}/.bashrc

0 comments on commit c064816

Please sign in to comment.