Skip to content

Commit 8650e76

Browse files
committed
ghcr publisher
1 parent e27e898 commit 8650e76

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

.github/workflows/ghcr.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: GitHub Container Registry
2+
3+
on:
4+
push:
5+
branches:
6+
- gh-pkg-docker
7+
8+
9+
jobs:
10+
build:
11+
name: Build and push to GHCR
12+
runs-on: ubuntu-latest
13+
permissions:
14+
packages: write
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v3
18+
19+
- name: Login to GitHub Container Registry
20+
uses: docker/login-action@v3
21+
with:
22+
registry: ghcr.io
23+
username: ${{ github.actor }}
24+
password: ${{ secrets.GITHUB_TOKEN }}
25+
26+
- name: Build VSCode Web and push to GHCR
27+
uses: docker/build-push-action@v5
28+
with:
29+
context: .
30+
push: true
31+
tags: ghcr.io/${{ github.repository }}:latest

Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM alpine:latest AS build
2+
WORKDIR /v86
3+
RUN apk add --update curl clang make openjdk8-jre-base npm python3 git openssh && \
4+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && PATH="${HOME}/.cargo/bin:${PATH}" rustup target add wasm32-unknown-unknown
5+
COPY . .
6+
RUN PATH="${HOME}/.cargo/bin:${PATH}" make all && \
7+
rm -rf closure-compiler gen lib src .cargo cargo.toml Makefile
8+
9+
FROM scratch AS dist
10+
COPY --from=build /v86/build /

0 commit comments

Comments
 (0)