change main branch and disable push

This commit is contained in:
Nebel 2021-07-25 19:07:06 +09:00 committed by GitHub
parent 87e80ba3c8
commit a31a0003b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,17 +1,11 @@
name: build name: build
on: on:
workflow_dispatch: push: { branches: [main] }
push: { branches: [master] }
jobs: jobs:
main: main:
runs-on: ubuntu-20.04 runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- run: sudo apt-get update - run: sudo apt-get update
- run: sudo apt-get install -y qemu-user-static - run: sudo apt-get install -y qemu-user-static
- name: Docker login
run: |
echo "${{ github.token }}" \
| docker login ghcr.io -u "${GITHUB_ACTOR}" --password-stdin
- run: bin/build - run: bin/build
- run: docker-compose push