Skip to content

Commit

Permalink
Add Dockerhub image push
Browse files Browse the repository at this point in the history
  • Loading branch information
KomelT committed Aug 24, 2024
1 parent 190204e commit 07069a1
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/dockerhub-push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: build-push

on:
push:
branches:
- master

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push App
uses: docker/build-push-action@v6
with:
context: .
push: true
file: "./app/Dockerfile"
tags: ${{ secrets.DOCKERHUB_USERNAME }}/meshtastic-map:latest

- name: Build and push API
uses: docker/build-push-action@v6
with:
context: .
push: true
file: "./api/Dockerfile"
tags: ${{ secrets.DOCKERHUB_USERNAME }}/meshtastic-map-api:latest

- name: Build and push MQTT listener
uses: docker/build-push-action@v6
with:
context: .
push: true
file: "./mqtt/Dockerfile"
tags: ${{ secrets.DOCKERHUB_USERNAME }}/meshtastic-map-mqtt:latest

0 comments on commit 07069a1

Please sign in to comment.