Skip to content

Commit

Permalink
wips
Browse files Browse the repository at this point in the history
  • Loading branch information
j2gg0s committed Nov 22, 2024
1 parent 408859a commit 6cebe86
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ jobs:
--health-cmd="mariadb-admin ping" --health-interval=10s --health-timeout=5s
--health-retries=5
mssql2019:
image: mcmoe/mssqldocker:v2019.CU4.0
image: ghcr.io/uptrace/mssql:latest
env:
ACCEPT_EULA: Y
SA_PASSWORD: passWORD1
MYSQL_SA_PASSWORD: passWORD1
MSSQL_DB: test
MSSQL_USER: sa
MSSQL_PASSWORD: passWORD1
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/mssql-container.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build Image for MSSQL

on:
workflow_dispatch:

jobs:
build-and-push:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build Docker image
working-directory: internal/dbtest/mssql-docker
run: |
docker build -t ghcr.io/${{ github.repository_owner }}/mssql:latest .
# 推送镜像到 GHCR
- name: Push Docker image
run: |
docker push ghcr.io/${{ github.repository_owner }}/mssql:latest

0 comments on commit 6cebe86

Please sign in to comment.