Skip to content

Commit

Permalink
Revert the revert
Browse files Browse the repository at this point in the history
This reverts commit af25409.
  • Loading branch information
KNPhilip committed Dec 3, 2023
1 parent af25409 commit 18990fd
Showing 1 changed file with 6 additions and 17 deletions.
23 changes: 6 additions & 17 deletions .github/workflows/docker-push.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,23 @@
name: docker-push

on:
workflow_dispatch:
# push:
# branches:
# - "main"

on: workflow_dispatch
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
- name: Build and push to DockerHub
# Using my own action to build & push to DockerHub.
uses: knphilip/actions/dockerfile-push@main
with:
tags: knphilip/activityhive:latest
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v3
with:
push: true
tags: knphilip/activityhive:latest
deploy:
needs: docker
name: Deploy app
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
- run: flyctl deploy --remote-only

0 comments on commit 18990fd

Please sign in to comment.