26 lines
990 B
YAML
26 lines
990 B
YAML
name: Build Docker containers
|
|
on: [push]
|
|
|
|
jobs:
|
|
Build:
|
|
container:
|
|
image: alpine:latest
|
|
steps:
|
|
- name: Install dependencies
|
|
run: apk add docker nodejs
|
|
- name: Login to docker registry
|
|
run: docker login git.arinity.org -u matt -p ${{ secrets.DOCKER_PUSH_TOKEN }}
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
- name: Build web app image
|
|
run: docker build --no-cache -f webapp/Dockerfile -t git.arinity.org/ctmesh/map:latest .
|
|
- name: Build mqtt listener image
|
|
run: docker build --no-cache -f mqtt/Dockerfile -t git.arinity.org/ctmesh/map-mqtt:latest .
|
|
- name: Build cli image
|
|
run: docker build --no-cache -f cli/Dockerfile -t git.arinity.org/ctmesh/map-cli:latest .
|
|
- name: Push images
|
|
run: |
|
|
docker push git.arinity.org/ctmesh/map:latest
|
|
docker push git.arinity.org/ctmesh/map-mqtt:latest
|
|
docker push git.arinity.org/ctmesh/map-cli:latest
|