manual workflow
This commit is contained in:
parent
2cf7dc1046
commit
772198b631
29
.github/workflows/frontend.yaml
vendored
29
.github/workflows/frontend.yaml
vendored
|
|
@ -3,10 +3,11 @@ name: Oktopus Frontend
|
|||
# Controls when the action will run. Triggers the workflow on push or pull request
|
||||
# events but only for the master branch
|
||||
on:
|
||||
push:
|
||||
branches: [ dev ]
|
||||
pull_request:
|
||||
branches: [ dev ]
|
||||
workflow_dispatch: # This event triggers the workflow manually
|
||||
#push:
|
||||
# branches: [ dev ]
|
||||
#pull_request:
|
||||
# branches: [ dev ]
|
||||
|
||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||
jobs:
|
||||
|
|
@ -20,9 +21,6 @@ jobs:
|
|||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
-
|
||||
name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
-
|
||||
name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
|
|
@ -32,12 +30,11 @@ jobs:
|
|||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
-
|
||||
name: Build and push
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: ../
|
||||
file: ./frontend/build/Dockerfile
|
||||
platforms: linux/amd64
|
||||
push: true
|
||||
tags: rogersacchelli/frontend:latest
|
||||
|
||||
-
|
||||
name: Build Docker image
|
||||
run: docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/frontend:latest -f frontend/build/Dockerfile frontend
|
||||
-
|
||||
name: Push Docker image to Docker Hub
|
||||
run: docker push ${{ secrets.DOCKERHUB_USERNAME }}/mqtt:latest
|
||||
|
||||
|
|
|
|||
9
.github/workflows/mqtt.yaml
vendored
9
.github/workflows/mqtt.yaml
vendored
|
|
@ -3,10 +3,11 @@ name: Oktopus MQTT Broker
|
|||
# Controls when the action will run. Triggers the workflow on push or pull request
|
||||
# events but only for the master branch
|
||||
on:
|
||||
push:
|
||||
branches: [ dev ]
|
||||
pull_request:
|
||||
branches: [ dev ]
|
||||
workflow_dispatch: # This event triggers the workflow manually
|
||||
#push:
|
||||
# branches: [ dev ]
|
||||
#pull_request:
|
||||
# branches: [ dev ]
|
||||
|
||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||
jobs:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user