name: Build on: push: branches: - master tags: - "[0-9]+.[0-9]+.[0-9]+" jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Run tests run: | tests/test.sh build: needs: [test] runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Build and push Docker images uses: docker/build-push-action@v1.1.0 with: repository: itzg/minecraft-bedrock-server username: ${{ secrets.DOCKER_USER }} password: ${{ secrets.DOCKER_PASSWORD }} tag_with_ref: true tag_with_sha: false cache_froms: itzg/minecraft-bedrock-server:latest add_git_labels: true push: false