test
Some checks reported warnings
Build and push image / deploy (push) Has been cancelled

This commit is contained in:
Nils Stinnesbeck 2023-05-18 18:07:04 +02:00
parent 9f4573f4d8
commit 668a44c452
Signed by: nils
GPG Key ID: C52E07422A136076

View File

@ -1,50 +1,22 @@
name: Build and push image
on: on:
push: push:
pull_request: branches: [main]
workflow_dispatch:
schedule:
- cron: '0 0 * * 4'
name: CI
jobs: jobs:
docker: deploy:
name: Docker runs-on: self-hosted
defaults: defaults:
run: run:
shell: bash --noprofile --norc -exo pipefail {0} working-directory: /repo
strategy:
fail-fast: false
matrix:
docker_version:
- 18.09
- 19.03
- "20.10"
- "latest"
docker_channel:
- stable
- test
- nightly
os:
- ubuntu-latest
runs-on: ${{ matrix.os }}
# timeout-minutes: 20
steps: steps:
- name: setup Docker - name: Set git remote if not already set
uses: ./ run: git remote -v | grep -w gitea || git remote add gitea "./gitea/git/repositories/${GITHUB_REPOSITORY,,}.git"
# uses: docker-practice/actions-setup-docker@master
with: - name: Checkout repo
docker_version: ${{ matrix.docker_version }} run: git pull gitea main
docker_channel: ${{ matrix.docker_channel }}
- name: Setup tmate session - name: Deploy
uses: mxschmitt/action-tmate@master
if: ${{ failure() }}
timeout-minutes: 60
- name: Test
run: | run: |
# set -x docker build -t rynomarree/self-hosted-deployment:latest .
docker version
cat /etc/docker/daemon.json || true
cat /Users/runner/.docker/daemon.json || true
docker buildx version || true
docker buildx ls || true