-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 975 Bytes
/
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
name: Build and Push Image
on:
push:
branches:
- main
jobs:
build:
name: Build and verify
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.21.x'
- name: Install dependencies
run: go mod download -x
- name: Build
run: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./bin/app ./cmd/app
- name: Upload Artifacts
uses: actions/[email protected]
with:
name: video-processing-app
path: bin/app
retention-days: 1
create-image:
name: Build Image and Push
needs: build
uses: cant-code/github-workflows/.github/workflows/docker-push.yml@main
with:
DOCKER_TAG: damnationcantcode/yt-clone-video-processing
ARTIFACT_NAME: video-processing-app
ARTIFACT_PATH: bin
secrets: inherit