File tree Expand file tree Collapse file tree 2 files changed +17
-18
lines changed Expand file tree Collapse file tree 2 files changed +17
-18
lines changed Original file line number Diff line number Diff line change @@ -21,21 +21,20 @@ jobs:
21
21
(cd Resources/parsers/50800 && swift test)
22
22
(cd Resources/parsers/50900 && swift test)
23
23
(cd Resources/parsers/trunk && swift test)
24
- - name : Build
24
+ - name : Set up Docker Buildx
25
+ uses : docker/setup-buildx-action@v2
26
+ - name : Login to Docker Hub
27
+ uses : docker/login-action@v2
28
+ with :
29
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
30
+ password : ${{ secrets.DOCKERHUB_TOKEN }}
31
+ - name : Build and push
25
32
run : |
26
33
set -ex
27
34
28
- (cd Resources/parsers/50800 && swift build -c release -Xswiftc -static-executable)
29
- (cd Resources/parsers/50900 && swift build -c release -Xswiftc -static-executable)
30
- (cd Resources/parsers/trunk && swift build -c release -Xswiftc -static-executable)
35
+ cd ./Playground
31
36
32
- git remote set-url origin https://github-actions:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}
33
- git config --global user.name "${GITHUB_ACTOR}"
34
- git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
35
- if (git diff --shortstat | grep '[0-9]'); then \
36
- git add .; \
37
- git commit -m "Update parsers"; \
38
- git push origin HEAD:${GITHUB_REF}; \
39
- fi
37
+ IMAGE_TAG=kishikawakatsumi/swift-ast-explorer.com:latest
40
38
41
- docker build --rm --no-cache --build-arg FONTAWESOME_TOKEN=${{ env.FONTAWESOME_TOKEN }} .
39
+ docker build --rm --no-cache --build-arg FONTAWESOME_TOKEN=${{ env.FONTAWESOME_TOKEN }} --tag ${IMAGE_TAG} .
40
+ docker push ${IMAGE_TAG}
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ COPY Public ./Public/
13
13
RUN npx webpack --config webpack.prod.js
14
14
15
15
16
- FROM swift:5.8-focal as swift
16
+ FROM swift:5.8-jammy as swift
17
17
RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true \
18
18
&& apt-get -q update \
19
19
&& apt-get -q dist-upgrade -y\
@@ -27,9 +27,9 @@ RUN swift package resolve
27
27
COPY . .
28
28
RUN swift build -c release --static-swift-stdlib
29
29
30
- RUN cd Resources/parsers/50800 && swift build -c release -Xswiftc -static-executable
31
- RUN cd Resources/parsers/50900 && swift build -c release -Xswiftc -static-executable
32
- RUN cd Resources/parsers/trunk && swift build -c release -Xswiftc -static-executable
30
+ RUN cd Resources/parsers/50800 && swift build -c release --static-swift-stdlib
31
+ RUN cd Resources/parsers/50900 && swift build -c release --static-swift-stdlib
32
+ RUN cd Resources/parsers/trunk && swift build -c release --static-swift-stdlib
33
33
34
34
WORKDIR /staging
35
35
@@ -41,7 +41,7 @@ RUN [ -d /build/Public ] && { mv /build/Public ./Public && chmod -R a-w ./Public
41
41
RUN [ -d /build/Resources ] && { mv /build/Resources ./Resources && chmod -R a-w ./Resources; } || true
42
42
43
43
44
- FROM swift:5.8-focal
44
+ FROM ubuntu:jammy
45
45
RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true \
46
46
&& apt-get -q update \
47
47
&& apt-get -q dist-upgrade -y \
You can’t perform that action at this time.
0 commit comments