-
Notifications
You must be signed in to change notification settings - Fork 0
119 lines (99 loc) · 3.66 KB
/
docker-image.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
name: Fly Deploy
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy app
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
env:
app_name: vgmify
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
# OLD PROCESS WHEN HEROKU WAS FREE. ALSO SOME RANDOM OLD THAT CAN BE DELETED.
# name: Push Container to Heroku
# on:
# push:
# branches:
# - main
# jobs:
# build:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v1
# - name: Login to Heroku Container registry
# env:
# HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
# run: heroku container:login
# - name: Build and push
# env:
# HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
# run: heroku container:push -a ${{ secrets.HEROKU_APP_NAME }} web
# - name: Release
# env:
# HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
# run: heroku container:release -a ${{ secrets.HEROKU_APP_NAME }} web
# name: Docker Image CI
# on:
# push:
# branches: [ "main" ]
# jobs:
# build:
# runs-on: ubuntu-latest
# steps:
# # -
# # name: Set up QEMU
# # uses: docker/setup-qemu-action@v2
# # -
# # name: Set up Docker Buildx
# # uses: docker/setup-buildx-action@v2
# # -
# # name: Login to DockerHub
# # uses: docker/login-action@v2
# # with:
# # username: ${{ secrets.DOCKERHUB_USERNAME }}
# # password: ${{ secrets.DOCKERHUB_TOKEN }}
# # - name: Build image and push to Docker Hub and GitHub Container Registry
# # uses: docker/build-push-action@v2
# # with:
# # # Note: tags has to be all lower-case
# # tags: |
# # masterjx9/vgmify:latest
# # # build on feature branches, push only on main branch
# # push: ${{ github.ref == 'refs/heads/main' }}
# ## ⬇ IMPORTANT PART ⬇ ###
# # Check-out your repository.
# - name: Checkout
# uses: actions/checkout@v2
# - name: Build, Push and Release a Docker container to Heroku. # Your custom step name
# uses: gonuit/[email protected] # GitHub action name (leave it as it is).
# with:
# # Below you must provide variables for your Heroku app.
# # The email address associated with your Heroku account.
# # If you don't want to use repository secrets (which is recommended) you can do:
# # email: [email protected]
# email: ${{ secrets.HEROKU_EMAIL }}
# # Heroku API key associated with provided user's email.
# # Api Key is available under your Heroku account settings.
# heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
# # Name of the heroku application to which the build is to be sent.
# heroku_app_name: ${{ secrets.HEROKU_APP_NAME }}
# # (Optional, default: "./")
# # Dockerfile directory.
# # For example, if you have a Dockerfile in the root of your project, leave it as follows:
# dockerfile_directory: ./
# # (Optional, default: "Dockerfile")
# # Dockerfile name.
# dockerfile_name: Dockerfile
# # (Optional, default: "")
# # Additional options of docker build command.
# docker_options: "--no-cache"
# # (Optional, default: "web")
# # Select the process type for which you want the docker container to be uploaded.
# # By default, this argument is set to "web".
# # For more information look at https://devcenter.heroku.com/articles/process-model
# process_type: web