-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (23 loc) · 912 Bytes
/
docker-image.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
name: Docker Image CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: self-hosted
steps:
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: actions/checkout@v3
- name: Build & Push Agent Docker image
run: docker buildx build --file Dockerfile_Raspberry_Agent --platform linux/arm/v6,linux/arm/v7 -t mcopjan/raspberry-hum-temp-agent:latest -t mcopjan/raspberry-hum-temp-agent:${{github.run_number}} --push .
- uses: actions/checkout@v3
- name: Build the Api Docker image
run: docker build . --file Dockerfile_Api --tag mcopjan/raspberry-hum-temp-api:latest
- name: Push the Api Docker Image
run: docker push mcopjan/raspberry-hum-temp-api:latest