-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 904 Bytes
/
tar.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
# .github/workflows/release.yml
name: tar_releaser
on:
pull_request:
push:
# run only against tags
tags:
- "tar*"
# branches: [ "master" ]
permissions:
contents: write
# packages: write
# issues: write
jobs:
dockerbuilder:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: go
run: go build -o srt main.go
- name: pwd
run: pwd
- name: build
run: docker build -t convertimage:latest ${{ github.workspace }}
- name: saveSpace
run: rm -rf /opt/hostedtoolcache
- name: export
run: docker save convertimage:latest -o ConvertImage.tar
- name: Upload
uses: actions/upload-artifact@v4
with:
path: ${{ github.workspace }}/ConvertImage.tar
compression-level: 9 # max compression