Skip to content

Commit

Permalink
Try to build codespaces docker image in this branch
Browse files Browse the repository at this point in the history
  • Loading branch information
hakatashi committed Nov 26, 2024
1 parent 2f6c776 commit ca804e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .devcontainer/slackbot/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM debian:bookworm-slim
ARG BRANCH_NAME=master

RUN apt-get update -y && \
# Install build dependencies for node-canvas
Expand Down Expand Up @@ -28,7 +29,7 @@ RUN apt-get update -y && \
apt-get update -y && \
apt-get install google-chrome-stable fonts-ipafont-gothic libasound2 libatk-bridge2.0-0 libatk1.0-0 libatspi2.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libdrm2 libexpat1 libgbm1 libglib2.0-0 libnspr4 libnss3 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libudev1 libuuid1 libx11-6 libx11-xcb1 libxcb-dri3-0 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxkbcommon0 libxrandr2 libxrender1 libxshmfence1 libxss1 libxtst6 -y && \
# Install slackbot npm dependencies
git clone https://github.com/tsg-ut/slackbot.git --branch asdf --single-branch --recursive --depth 1 /code && \
git clone https://github.com/tsg-ut/slackbot.git --branch ${BRANCH_NAME} --single-branch --recursive --depth 1 /code && \
cd /code && \
asdf install && \
npm install && \
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/codespaces-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- master
- asdf

env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
Expand Down Expand Up @@ -35,7 +36,9 @@ jobs:
with:
context: .devcontainer/slackbot
push: true
tags: ghcr.io/tsg-ut/slackbot-codespaces-image-slackbot:master
tags: ghcr.io/tsg-ut/slackbot-codespaces-image-slackbot:${{ env.BRANCH_NAME }}
build-args: |
BRANCH_NAME=${{ env.BRANCH_NAME }}
- name: Generate artifact attestation (slackbot)
uses: actions/attest-build-provenance@v1
Expand Down

0 comments on commit ca804e5

Please sign in to comment.