2020-07-21 01:06:43 +09:00
|
|
|
name: build
|
|
|
|
on:
|
2020-08-08 23:25:52 +09:00
|
|
|
workflow_dispatch:
|
2021-07-17 13:08:16 +09:00
|
|
|
push: { branches: [master] }
|
2020-07-21 01:06:43 +09:00
|
|
|
jobs:
|
|
|
|
main:
|
2020-08-09 00:43:41 +09:00
|
|
|
runs-on: ubuntu-20.04
|
2020-07-21 01:06:43 +09:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-07-17 13:15:05 +09:00
|
|
|
- run: sudo apt-get update
|
2020-08-08 23:25:52 +09:00
|
|
|
- run: sudo apt-get install -y qemu-user-static
|
2021-07-17 13:21:30 +09:00
|
|
|
- name: Docker login
|
|
|
|
run: |
|
|
|
|
echo "${{ github.token }}" \
|
|
|
|
| docker login ghcr.io -u "${GITHUB_ACTOR}" --password-stdin
|
2020-07-21 01:06:43 +09:00
|
|
|
- run: bin/build
|
|
|
|
- run: docker-compose push
|