diff --git a/.github/workflows/ecr.yml b/.github/workflows/ecr.yml new file mode 100644 index 0000000..7fb59bf --- /dev/null +++ b/.github/workflows/ecr.yml @@ -0,0 +1,31 @@ +name: ECR Push + +on: + workflow_dispatch: + inputs: + service: + description: 'Service name to build' + required: true + type: string + version: + description: 'Version/tag for the image' + required: true + type: string + +permissions: + contents: read + id-token: write + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Build and push image + uses: docker/actions/build-push-image-ecr@build-push-image-ecr/v1 + with: + docker_password: ${{ secrets.DOCKERBUILDBOT_READ_PAT }} + image_name: 'hello-world' + image_version: '1.0' \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8dcbbbc --- /dev/null +++ b/Dockerfile @@ -0,0 +1,2 @@ +FROM alpine:latest +CMD ["echo", "Hello from container"] \ No newline at end of file