Skip to content

gitpod-web extension docker image publish #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 20 additions & 16 deletions .github/workflows/gitpod-web-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,39 @@ on:
workflow_dispatch:

jobs:
docker:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/checkout@v2
- name: Auth Google Cloud SDK
uses: google-github-actions/auth@v0
with:
credentials_json: ${{ secrets.GCP_SA_KEY }}
- name: Set up Google Cloud SDK
uses: google-github-actions/setup-gcloud@v0
with:
project_id: ${{ secrets.GCP_PROJECT_ID }}
- name: Set up Docker
run: |
gcloud auth configure-docker --quiet
- uses: actions/setup-node@v3
with:
node-version: 16

- name: Install Yarn
run: npm install -g yarn

- name: Execute yarn
run: |
yarn --frozen-lockfile --network-timeout 180000

- name: Build
run: |
yarn run build:gitpod-web

- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Docker build and push
uses: docker/build-push-action@v3
with:
push: true
context: gitpod-web
tags: jeanp413/gitpod-web:latest
tags: eu.gcr.io/gitpod-core-dev/build/ide/gitpod-code-web:commit-${{ github.sha }}

- name: Slack Notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.IDE_SLACK_WEBHOOK }}
SLACK_COLOR: ${{ job.status }}
8 changes: 4 additions & 4 deletions gitpod-web/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# FROM alpine:3.16
FROM scratch

COPY --chown=33333:33333 out /gitpod-web/out/
COPY --chown=33333:33333 public /gitpod-web/public/
COPY --chown=33333:33333 resources /gitpod-web/resources/
COPY --chown=33333:33333 package.json package.nls.json README.md LICENSE.txt /gitpod-web/
COPY --chown=33333:33333 out /ide/extensions/gitpod-web/out/
COPY --chown=33333:33333 public /ide/extensions/gitpod-web/public/
COPY --chown=33333:33333 resources /ide/extensions/gitpod-web/resources/
COPY --chown=33333:33333 package.json package.nls.json README.md LICENSE.txt /ide/extensions/gitpod-web/
2 changes: 1 addition & 1 deletion gitpod-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "%displayName%",
"description": "%description%",
"publisher": "gitpod",
"version": "0.0.1",
"version": "0.0.2",
"license": "MIT",
"icon": "resources/gitpod.png",
"repository": {
Expand Down