aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/dockerhub.yml44
-rw-r--r--.github/workflows/integration.yml2
-rw-r--r--.github/workflows/release.yml24
3 files changed, 51 insertions, 19 deletions
diff --git a/.github/workflows/dockerhub.yml b/.github/workflows/dockerhub.yml
new file mode 100644
index 0000000..68e3d67
--- /dev/null
+++ b/.github/workflows/dockerhub.yml
@@ -0,0 +1,44 @@
1# Build & publish docker images
2name: Dockerhub
3
4on:
5 push:
6 tags: [v*]
7 branches: [ main ]
8
9
10jobs:
11 dockerhub:
12 runs-on: ubuntu-latest
13 steps:
14 -
15 name: Checkout
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 id: buildx
23 uses: docker/setup-buildx-action@v2
24 -
25 name: Login to Docker Hub
26 uses: docker/login-action@v2
27 with:
28 username: ${{ secrets.DOCKERHUB_USERNAME }}
29 password: ${{ secrets.DOCKERHUB_TOKEN }}
30 -
31 name: Set tag name
32 run: |
33 if [[ ${{ github.ref_type }} == "tag" ]]; then
34 echo "IMAGE_TAG=${{ github.ref_name }}" >> $GITHUB_ENV
35 else
36 echo "IMAGE_TAG=latest" >> $GITHUB_ENV
37 fi
38 -
39 name: Build and push
40 uses: docker/build-push-action@v3
41 with:
42 push: true
43 tags: b4bz/buildx-test:${{env.IMAGE_TAG}}
44 platforms: linux/amd64,linux/arm/v7,linux/arm64 \ No newline at end of file
diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml
index 8d1a7ad..257f758 100644
--- a/.github/workflows/integration.yml
+++ b/.github/workflows/integration.yml
@@ -20,7 +20,7 @@ jobs:
20 # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ 20 # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
21 21
22 steps: 22 steps:
23 - uses: actions/checkout@v2 23 - uses: actions/checkout@v3
24 - name: Use Node.js ${{ matrix.node-version }} 24 - name: Use Node.js ${{ matrix.node-version }}
25 uses: actions/setup-node@v2 25 uses: actions/setup-node@v2
26 with: 26 with:
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 886556d..62c15a8 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -10,7 +10,7 @@ jobs:
10 name: Upload Release Asset 10 name: Upload Release Asset
11 runs-on: ubuntu-latest 11 runs-on: ubuntu-latest
12 steps: 12 steps:
13 - uses: actions/checkout@v2 13 - uses: actions/checkout@v3
14 - name: Build project 14 - name: Build project
15 run: | 15 run: |
16 yarn install 16 yarn install
@@ -20,21 +20,9 @@ jobs:
20 run: zip -r ../homer.zip ./* 20 run: zip -r ../homer.zip ./*
21 - name: Create Release 21 - name: Create Release
22 id: create_release 22 id: create_release
23 uses: actions/create-release@v1 23 uses: softprops/action-gh-release@v1
24 env:
25 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26 with: 24 with:
27 tag_name: ${{ github.ref }} 25 token: ${{ secrets.GITHUB_TOKEN }}
28 release_name: Release ${{ github.ref }} 26 generate_release_notes: true
29 draft: false 27 files: |
30 prerelease: false 28 homer.zip \ No newline at end of file
31 - name: Upload Release Asset
32 id: upload-release-asset
33 uses: actions/upload-release-asset@v1
34 env:
35 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36 with:
37 upload_url: ${{ steps.create_release.outputs.upload_url }}
38 asset_path: ./homer.zip
39 asset_name: homer.zip
40 asset_content_type: application/zip