mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 04:26:01 +00:00
run test containers - standalone workflow
This commit is contained in:
31
.github/workflows/build-tests-containers.yaml
vendored
Normal file
31
.github/workflows/build-tests-containers.yaml
vendored
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
# --------------------------------------------------------------------------------------------
|
||||||
|
# This file is generated. Do not edit manually
|
||||||
|
# --------------------------------------------------------------------------------------------
|
||||||
|
name: Build test containers
|
||||||
|
'on':
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- develop
|
||||||
|
- feature/**
|
||||||
|
paths:
|
||||||
|
- e2e-tests/mysql-ssh/Dockerfile
|
||||||
|
jobs:
|
||||||
|
build-docker-ssh:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout source
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Build mysql-ssh image
|
||||||
|
run: |
|
||||||
|
docker build -t dbgate/mysql-ssh:latest e2e-tests/mysql-ssh
|
||||||
|
- name: Log in to GHCR
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: '${{ github.actor }}'
|
||||||
|
password: '${{ secrets.GITHUB_TOKEN }}'
|
||||||
|
- name: Push image to GHCR
|
||||||
|
run: |
|
||||||
|
docker tag dbgate/mysql-ssh:latest ghcr.io/dbgate/mysql-ssh:latest
|
||||||
|
docker push ghcr.io/dbgate/mysql-ssh:latest
|
||||||
18
.github/workflows/run-tests.yaml
vendored
18
.github/workflows/run-tests.yaml
vendored
@@ -9,24 +9,6 @@ name: Run tests
|
|||||||
- develop
|
- develop
|
||||||
- feature/**
|
- feature/**
|
||||||
jobs:
|
jobs:
|
||||||
build-docker-ssh:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout source
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
- name: Build mysql-ssh image
|
|
||||||
run: |
|
|
||||||
docker build -t dbgate/mysql-ssh:latest e2e-tests/mysql-ssh
|
|
||||||
- name: Log in to GHCR
|
|
||||||
uses: docker/login-action@v2
|
|
||||||
with:
|
|
||||||
registry: ghcr.io
|
|
||||||
username: '${{ github.actor }}'
|
|
||||||
password: '${{ secrets.GITHUB_TOKEN }}'
|
|
||||||
- name: Push image to GHCR
|
|
||||||
run: |
|
|
||||||
docker tag dbgate/mysql-ssh:latest ghcr.io/dbgate/mysql-ssh:latest
|
|
||||||
docker push ghcr.io/dbgate/mysql-ssh:latest
|
|
||||||
test:
|
test:
|
||||||
needs: build-docker-ssh
|
needs: build-docker-ssh
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
33
workflow-templates/build-tests-containers.yaml
Normal file
33
workflow-templates/build-tests-containers.yaml
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
name: Build test containers
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- develop
|
||||||
|
- 'feature/**'
|
||||||
|
paths:
|
||||||
|
- "e2e-tests/mysql-ssh/Dockerfile"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-docker-ssh:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout source
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Build mysql-ssh image
|
||||||
|
run: |
|
||||||
|
docker build -t dbgate/mysql-ssh:latest e2e-tests/mysql-ssh
|
||||||
|
|
||||||
|
- name: Log in to GHCR
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Push image to GHCR
|
||||||
|
run: |
|
||||||
|
docker tag dbgate/mysql-ssh:latest ghcr.io/dbgate/mysql-ssh:latest
|
||||||
|
docker push ghcr.io/dbgate/mysql-ssh:latest
|
||||||
@@ -8,36 +8,6 @@ on:
|
|||||||
- 'feature/**'
|
- 'feature/**'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-docker-ssh:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout source
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
# - name: Detect changed files
|
|
||||||
# uses: tj-actions/changed-files@v45
|
|
||||||
# with:
|
|
||||||
# files: e2e-tests/mysql-ssh/Dockerfile
|
|
||||||
|
|
||||||
- name: Build mysql-ssh image
|
|
||||||
# if: steps.changed-files-specific.outputs.any_changed == 'true'
|
|
||||||
run: |
|
|
||||||
docker build -t dbgate/mysql-ssh:latest e2e-tests/mysql-ssh
|
|
||||||
|
|
||||||
- name: Log in to GHCR
|
|
||||||
# if: steps.changed-files-specific.outputs.any_changed == 'true'
|
|
||||||
uses: docker/login-action@v2
|
|
||||||
with:
|
|
||||||
registry: ghcr.io
|
|
||||||
username: ${{ github.actor }}
|
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Push image to GHCR
|
|
||||||
# if: steps.changed-files-specific.outputs.any_changed == 'true'
|
|
||||||
run: |
|
|
||||||
docker tag dbgate/mysql-ssh:latest ghcr.io/dbgate/mysql-ssh:latest
|
|
||||||
docker push ghcr.io/dbgate/mysql-ssh:latest
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
needs: build-docker-ssh
|
needs: build-docker-ssh
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
Reference in New Issue
Block a user