-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 1.05 KB
/
main.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
name: Build and Deploy
on:
push:
branches: [ master ]
# Manual activation
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v1
- name: Log into Docker
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
uses: docker/[email protected]
id: docker_build
with:
push: true
tags: datagutt/lsnd:latest
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
# - name: Deploy
# uses: fjogeleit/[email protected]
# with:
# url: ${{ secrets.UPDATE_SVC_URL }}
# bearerToken: ${{ secrets.UPDATE_SVC_TOKEN }}
# timeout: 0