mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 00:56:02 +00:00
34 lines
787 B
YAML
34 lines
787 B
YAML
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
|