From 44ccc4143e11c45630d2352b55217abfa00076cf Mon Sep 17 00:00:00 2001 From: Pawel Rosinski Date: Thu, 16 May 2024 09:45:34 +0200 Subject: [PATCH] Create docker-image.yml --- .github/workflows/docker-image.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/docker-image.yml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000..88f4de8 --- /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, default] + 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