Skip to content
This repository was archived by the owner on Sep 29, 2025. It is now read-only.
31 changes: 31 additions & 0 deletions .github/workflows/ecr.yml
Original file line number Diff line number Diff line change
@@ -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'
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM alpine:latest
CMD ["echo", "Hello from container"]
Loading