Skip to content

Commit e86ce48

Browse files
committed
add a build of docker
1 parent eedbf07 commit e86ce48

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/pr.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Build Docker Image
2+
3+
on:
4+
workflow_dispatch:
5+
workflow_call:
6+
7+
jobs:
8+
docker-build:
9+
name: Build Docker
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v6
14+
with:
15+
ref: ${{ github.ref }}
16+
17+
- name: Build, tag, and push the image to Amazon ECR
18+
id: build-image
19+
env:
20+
ECR_REGISTRY: local.test
21+
ECR_REPOSITORY: 'ssh_bastion'
22+
IMAGE_TAG: latest
23+
run: |
24+
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:latest .

0 commit comments

Comments
 (0)