-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (33 loc) · 930 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Test image
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Docker Setup Buildx
uses: docker/[email protected]
- name: Docker Login
uses: docker/[email protected]
with:
username: ${{secrets.DOCKER_HUB_USERNAME}}
password: ${{secrets.DOCKER_HUB_ACCESS_TOKEN}}
- name: Build and test Alpine Docker image
id: alpine_build
uses: docker/[email protected]
with:
file: ./alpine/Dockerfile
context: ./alpine
target: test
- name: Build and test Busybox Docker image
id: busybox_build
uses: docker/[email protected]
with:
file: ./busybox/Dockerfile
context: ./busybox
target: test