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