-
Notifications
You must be signed in to change notification settings - Fork 0
111 lines (96 loc) · 3.15 KB
/
release.yaml
File metadata and controls
111 lines (96 loc) · 3.15 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
name: Release on tag
on:
push:
tags:
- "v*.*.*"
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup repo
uses: actions/checkout@v4
- name: Build Docker image
run: |
docker build \
--build-arg USERNAME=$(whoami) \
--build-arg USER_UID=$(id -u) \
--build-arg USER_GID=$(id -g) \
--target devkit-deno \
-t deno-container \
-f .devcontainer/Dockerfile .
- name: Release
uses: softprops/action-gh-release@v2
with:
files: devkit-${{ github.ref_name }}.tar.gz
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push cfx-deno-cli Docker image
uses: docker/build-push-action@v6
with:
file: .devcontainer/Dockerfile
context: .
target: cfx-deno-cli
push: true
tags: |
cfxdevkit/devkit-cli:${{ github.ref_name }}
cfxdevkit/devkit-cli:latest
- name: Build and push devkit-nvm Docker image
uses: docker/build-push-action@v6
with:
file: .devcontainer/Dockerfile
context: .
target: devkit-nvm
push: true
tags: |
cfxdevkit/devkit-nvm:${{ github.ref_name }}
cfxdevkit/devkit-nvm:latest
- name: Build and push devkit-hardhat Docker image
uses: docker/build-push-action@v6
with:
file: .devcontainer/Dockerfile
context: .
target: devkit-hardhat-espace
push: true
tags: |
cfxdevkit/devkit-hardhat-espace:${{ github.ref_name }}
cfxdevkit/devkit-hardhat-espace:latest
- name: Build and push devkit-hardhat-core Docker image
uses: docker/build-push-action@v6
with:
file: .devcontainer/Dockerfile
context: .
target: devkit-hardhat-core
push: true
tags: |
cfxdevkit/devkit-hardhat-core:${{ github.ref_name }}
cfxdevkit/devkit-hardhat-core:latest
# - name: Build and push devkit-hardhat-core Docker image
# uses: docker/build-push-action@v6
# with:
# file: .devcontainer/Dockerfile
# context: .
# target: devkit-hardhat-core
# push: true
# tags: |
# cfxdevkit/devkit-hardhat-core:${{ github.ref_name }}
# cfxdevkit/devkit-hardhat-core:latest
# - name: Build and push devkit-hardhat Docker image
# uses: docker/build-push-action@v6
# with:
# file: .devcontainer/Dockerfile
# context: .
# target: devkit-hardhat-espace
# push: true
# tags: |
# cfxdevkit/devkit-hardhat-espace:${{ github.ref_name }}
# cfxdevkit/devkit-hardhat-espace:latest
- name: Log out from Docker Hub
run: docker logout