Skip to content

Commit

Permalink
Simplified build
Browse files Browse the repository at this point in the history
  • Loading branch information
KomelT committed Oct 29, 2024
1 parent b26c2bd commit 5cd2372
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 50 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,33 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build APP
- name: Log in to DockerHub
if: github.ref == 'refs/heads/main'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push APP Docker image
uses: docker/build-push-action@v6
with:
context: "{{defaultContext}}"
file: ./app/Dockerfile
push: ${{ github.ref == 'refs/heads/main' }}
tags: komelt/meshtastic-map:latest

- name: Build API
- name: Build and push API Docker image
uses: docker/build-push-action@v6
with:
context: "{{defaultContext}}"
file: ./api/Dockerfile

- name: Build MQTT
push: ${{ github.ref == 'refs/heads/main' }}
tags: komelt/meshtastic-map-api:latest

- name: Build and push MQTT Docker image
uses: docker/build-push-action@v6
with:
context: "{{defaultContext}}"
file: ./mqtt/Dockerfile
push: ${{ github.ref == 'refs/heads/main' }}
tags: komelt/meshtastic-map-mqtt:latest
46 changes: 0 additions & 46 deletions .github/workflows/dockerhub-push.yaml

This file was deleted.

0 comments on commit 5cd2372

Please sign in to comment.