diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000..caa8f96 --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,18 @@ +name: Docker + +on: + push: + branches: [ "dev" ] + pull_request: + branches: [ "dev" ] + workflow_dispatch: + +jobs: + build: + runs-on: [self-hosted] + steps: + - uses: actions/checkout@v4 + - name: Build the Docker image + run: docker build . --file Dockerfile --tag pg-migration-tool:latest + - name: login to ECR + run: aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin 490628988712.dkr.ecr.us-east-2.amazonaws.com diff --git a/.gitignore b/.gitignore index 5a09b6b..c5d1fbf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +pg-migration-config/ config.yaml *.log .DS_Store