run test containers - standalone workflow

This commit is contained in:
SPRINX0\prochazka
2025-01-03 08:12:11 +01:00
parent 144777da58
commit f5a6ca18f0
4 changed files with 64 additions and 48 deletions

View 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

View File

@@ -9,24 +9,6 @@ name: Run tests
- develop
- feature/**
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:
needs: build-docker-ssh
runs-on: ubuntu-latest