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

View File

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