Skip to content

Commit c592963

Browse files
committed
build: test docker configuration in ci
1 parent 46e6d4f commit c592963

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/test.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: test
2+
3+
on:
4+
pull_request:
5+
push:
6+
tags-ignore:
7+
- '**'
8+
9+
jobs:
10+
docker:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v6
14+
15+
- name: Set up Docker Buildx
16+
uses: docker/setup-buildx-action@v4
17+
18+
- name: build
19+
uses: docker/build-push-action@v7
20+
with:
21+
load: true
22+
tags: aws-codedeploy-action:latest
23+
24+
- name: Test installed tools
25+
run: |
26+
set -e
27+
docker run --rm --entrypoint jq aws-codedeploy-action:latest --version
28+
docker run --rm --entrypoint unzip aws-codedeploy-action:latest --version
29+
docker run --rm --entrypoint zip aws-codedeploy-action:latest --version
30+
docker run --rm --entrypoint tar aws-codedeploy-action:latest --version
31+
docker run --rm --entrypoint gzip aws-codedeploy-action:latest --version

0 commit comments

Comments
 (0)