-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (28 loc) · 1.08 KB
/
push.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: push
on:
push: {}
jobs:
buildkit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Ensure download script is in the right path
run: test -f .godownloader.sh
- name: Log in to GitHub Container Registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- run: DOCKER_BUILDKIT=1 docker build -o=. --platform=local .
- run: ./monkey version
# - run: echo LINUX=$(sha256sum ./monkey | awk '{print $1}') >>$GITHUB_ENV
# # No docker on macos
# - run: DOCKER_BUILDKIT=1 docker build --platform=darwin/amd64 -o . .
# - run: echo DARWIN=$(sha256sum ./monkey | awk '{print $1}') >>$GITHUB_ENV
# - run: [[ "$DARWIN" != "$LINUX" ]]
# # invalid windows mount type: 'bind'
# - run: DOCKER_BUILDKIT=1 docker build --platform=windows/amd64 -o . .
# - run: echo WINDOWS=$(sha256sum ./monkey.exe | awk '{print $1}') >>$GITHUB_ENV
# - run: [[ "$WINDOWS" != "$LINUX" ]]
# - run: [[ "$WINDOWS" != "$DARWIN" ]]