manual workflow

This commit is contained in:
Roger Sacchelli 2024-04-12 01:28:07 -03:00
parent 2cf7dc1046
commit 772198b631
2 changed files with 18 additions and 20 deletions

View File

@ -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

View File

@ -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: