-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (42 loc) · 1.41 KB
/
docker_release.yml
File metadata and controls
48 lines (42 loc) · 1.41 KB
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
name: Build and Push Docker Image
# when to run the workflow
on:
push:
branches: [main]
# the jobs to run
jobs:
build:
# the os to run the job on
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
# build the image now
- name: Build Docker image
env:
YARNRC: ${{secrets.YARNRC}}
run: |
echo "$YARNRC" > .yarnrc.yml
docker compose --env-file variables_tsspredator.env build
- name: save images
run: |
docker save tsspredator_web:latest | gzip > image_tsspredator_web.tar.gz
docker save tsspredator_celery_app:latest | gzip > image_tsspredator_celery_app.tar.gz
- name: Release WebImage to Repo
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: image_tsspredator_web.tar.gz
asset_name: TSSpredatorWeb
tag: ${{ github.ref }}
overwrite: true
body: "The image for the web interface of TSSpredator"
- name: Release CeleryImage to Repo
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: image_tsspredator_celery_app.tar.gz
asset_name: TSSpredatorCelery
tag: ${{ github.ref }}
overwrite: true
body: "The image for the celery app of TSSpredator"