mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 00:56:02 +00:00
fix
This commit is contained in:
8
.github/workflows/run-tests.yaml
vendored
8
.github/workflows/run-tests.yaml
vendored
@@ -14,16 +14,24 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout source
|
||||
uses: actions/checkout@v3
|
||||
- name: Detect changed files
|
||||
uses: tj-actions/changed-files@v34
|
||||
with:
|
||||
files: |
|
||||
e2e-tests/mysql-ssh/Dockerfile
|
||||
- name: Build mysql-ssh image
|
||||
if: '${{ steps.filecheck.outputs.any_changed == ''true'' }}'
|
||||
run: |
|
||||
docker build -t dbgate/mysql-ssh:latest e2e-tests/mysql-ssh
|
||||
- name: Log in to GHCR
|
||||
if: '${{ steps.filecheck.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.filecheck.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
|
||||
|
||||
@@ -14,9 +14,9 @@ RUN service mysql start && \
|
||||
mysql -uroot -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root'; FLUSH PRIVILEGES;" && \
|
||||
service mysql stop
|
||||
|
||||
EXPOSE 22 3306
|
||||
EXPOSE 22
|
||||
|
||||
COPY start.sh /start.sh
|
||||
RUN chmod +x /start.sh
|
||||
|
||||
CMD ["/start.sh"]
|
||||
CMD ["/start.sh"]
|
||||
|
||||
@@ -14,11 +14,19 @@ jobs:
|
||||
- name: Checkout source
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Detect changed files
|
||||
uses: tj-actions/changed-files@v34
|
||||
with:
|
||||
files: |
|
||||
e2e-tests/mysql-ssh/Dockerfile
|
||||
|
||||
- name: Build mysql-ssh image
|
||||
if: ${{ steps.filecheck.outputs.any_changed == 'true' }}
|
||||
run: |
|
||||
docker build -t dbgate/mysql-ssh:latest e2e-tests/mysql-ssh
|
||||
|
||||
- name: Log in to GHCR
|
||||
if: ${{ steps.filecheck.outputs.any_changed == 'true' }}
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: ghcr.io
|
||||
@@ -26,6 +34,7 @@ jobs:
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Push image to GHCR
|
||||
if: ${{ steps.filecheck.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
|
||||
@@ -136,4 +145,3 @@ jobs:
|
||||
|
||||
mysql-ssh:
|
||||
image: ghcr.io/dbgate/mysql-ssh:latest
|
||||
|
||||
|
||||
Reference in New Issue
Block a user