-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (30 loc) · 1.03 KB
/
stonks2moon-ci.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
name: Deploy freshly built Docker Image
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to Docker Registry
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PAT }}
- id: string
uses: ASzc/change-string-case-action@v1
with:
string: ${{ github.event.repository.name }}
- name: Build and push
uses: docker/build-push-action@v2
with:
push: true
build-args: |
MONGO_CONNECTION_ARG=${{ secrets.MONGO_CONNECTION }}
JWT_SECRET_ARG=${{ secrets.JWT_SECRET }}
REDIS_HOST_ARG=${{ secrets.REDIS_HOST }}
REDIS_PORT_ARG=6379
REDIS_PW_ARG=${{ secrets.REDIS_PW }}
tags: stonks2moon/${{ steps.string.outputs.lowercase }}:${{ github.sha }}, stonks2moon/${{ steps.string.outputs.lowercase }}:latest