-
Notifications
You must be signed in to change notification settings - Fork 2
60 lines (60 loc) · 2.07 KB
/
pre-release.yaml
File metadata and controls
60 lines (60 loc) · 2.07 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
49
50
51
52
53
54
55
56
57
58
59
60
on:
push:
tags:
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
name: Create prerelease w/ binaries and static assets
jobs:
build-push-go:
name: go
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to GHCR
id: login-ghcr
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Build
run: |
DOCKER_BUILDKIT=1 docker build -f ./go/Dockerfile \
-t ghcr.io/hatchet-dev/managed-worker-quickstarts/go:latest \
--platform linux/amd64 \
./go
- name: Push to GHCR
run: |
docker push ghcr.io/hatchet-dev/managed-worker-quickstarts/go:latest
build-push-python:
name: python
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to GHCR
id: login-ghcr
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Build
run: |
DOCKER_BUILDKIT=1 docker build -f ./python/Dockerfile \
-t ghcr.io/hatchet-dev/managed-worker-quickstarts/python:latest \
--platform linux/amd64 \
./python
- name: Push to GHCR
run: |
docker push ghcr.io/hatchet-dev/managed-worker-quickstarts/python:latest
build-push-typescript:
name: typescript
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to GHCR
id: login-ghcr
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Build
run: |
DOCKER_BUILDKIT=1 docker build -f ./typescript/Dockerfile \
-t ghcr.io/hatchet-dev/managed-worker-quickstarts/typescript:latest \
--platform linux/amd64 \
./typescript
- name: Push to GHCR
run: |
docker push ghcr.io/hatchet-dev/managed-worker-quickstarts/typescript:latest