This commit is contained in:
parent
9f4573f4d8
commit
668a44c452
@ -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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user