Skip to content

add start script to package.json #9

add start script to package.json

add start script to package.json #9

Workflow file for this run

name: odin-battleship-fly
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Login to docker hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build the image and push it to Docker Hub
uses: docker/build-push-action@v5
with:
file: ./Dockerfile.nginx # uses the nginx image
push: true
tags: mantesso/odin-battleship:ex_3.2
deploy:
name: odin-battleship-fly
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}