JacobLinCool commited on
Commit
8e9ea71
·
1 Parent(s): cee6efa

ci: remove test, replace with build

Browse files

Former-commit-id: 68e7bfeacd9576d8a426224816b5d8c0041a18ea

.github/workflows/build.yml ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Build Image
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ workflow_dispatch:
8
+
9
+ jobs:
10
+ build:
11
+ name: Build Image
12
+ runs-on: ubuntu-latest
13
+ timeout-minutes: 120
14
+ steps:
15
+ - name: Checkout Repo
16
+ uses: actions/checkout@v3
17
+
18
+ - name: Set up QEMU
19
+ uses: docker/setup-qemu-action@v2
20
+
21
+ - name: Set up Docker Buildx
22
+ uses: docker/setup-buildx-action@v2
23
+
24
+ - name: Login to Docker Hub
25
+ uses: docker/login-action@v2
26
+ with:
27
+ username: ${{ secrets.DOCKERHUB_USERNAME }}
28
+ password: ${{ secrets.DOCKERHUB_TOKEN }}
29
+
30
+ - name: Build and push Docker image
31
+ uses: docker/build-push-action@v3
32
+ with:
33
+ context: .
34
+ push: true
35
+ tags: |
36
+ ${{ secrets.DOCKERHUB_USERNAME }}/create-3d-icon:latest
37
+ ${{ secrets.DOCKERHUB_USERNAME }}/create-3d-icon:${{ github.sha }}
38
+ platforms: linux/amd64,linux/arm64
.github/workflows/test.yml DELETED
@@ -1,38 +0,0 @@
1
- name: Test
2
-
3
- on:
4
- push:
5
- branches:
6
- - main
7
- workflow_dispatch:
8
-
9
- jobs:
10
- test:
11
- name: Test
12
- runs-on: ubuntu-latest
13
- timeout-minutes: 30
14
- steps:
15
- - name: Checkout Repo
16
- uses: actions/checkout@v3
17
-
18
- # - name: Install Blender
19
- # run: |
20
- # sudo apt-get update
21
- # sudo apt-get install blender
22
-
23
- - name: Setup Python 3.10
24
- uses: actions/setup-python@v4
25
- with:
26
- python-version: "3.10"
27
-
28
- - name: Install Poetry
29
- uses: Gr1N/setup-poetry@v8
30
-
31
- - name: Use Python 3.10
32
- run: poetry env use 3.10
33
-
34
- - name: Install Dependencies
35
- run: poetry install
36
-
37
- - name: Run
38
- run: poetry run python create.py examples/LogosGithubIcon.svg