Skip to content

Commit

Permalink
Merge pull request #3 from cryptogarageinc/feature/add-alpine316
Browse files Browse the repository at this point in the history
feat: add alpine 3.15 & 3.16 asset
  • Loading branch information
k-matsuzawa authored Sep 9, 2022
2 parents 47f1519 + bdd1737 commit e00f7d4
Showing 1 changed file with 74 additions and 2 deletions.
76 changes: 74 additions & 2 deletions .github/workflows/create_release-and-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ env:
jobs:
create_releases:
name: create-releases
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
outputs:
release_url: ${{ steps.output_url.outputs.upload_url }}

Expand Down Expand Up @@ -140,7 +140,7 @@ jobs:
upload-object-alpine-3-14:
name: upload-object-alpine-3.14
needs: create_releases
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
env:
FILENAME: "generateblock-alpine3_14"
steps:
Expand Down Expand Up @@ -172,3 +172,75 @@ jobs:
asset_path: ./${{ env.FILENAME }}.gz
asset_name: ${{ env.FILENAME }}}.gz
asset_content_type: application/gzip

upload-object-alpine-3-15:
name: upload-object-alpine-3.15
needs: create_releases
runs-on: ubuntu-20.04
env:
FILENAME: "generateblock-alpine3_15"
steps:
- name: checkout
uses: actions/checkout@v2
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: list
run: ls -a $GITHUB_WORKSPACE
- name: docker setup
uses: docker://golang:1.18-alpine3.15
with:
entrypoint: /github/workspace/.github/workflows/docker/alpine_build_entrypoint.sh
- name: create archive file
run: |
gzip ${FILENAME}
echo "---- dump gzip file ----"
ls -l generateblock*
- name: output url
id: get_url
run: echo "::set-output name=upload_url::${{ needs.create_releases.outputs.release_url }}"
- name: Upload Release Asset
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.get_url.outputs.upload_url }}
asset_path: ./${{ env.FILENAME }}.gz
asset_name: ${{ env.FILENAME }}}.gz
asset_content_type: application/gzip

upload-object-alpine-3-16:
name: upload-object-alpine-3.16
needs: create_releases
runs-on: ubuntu-20.04
env:
FILENAME: "generateblock-alpine3_16"
steps:
- name: checkout
uses: actions/checkout@v2
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: list
run: ls -a $GITHUB_WORKSPACE
- name: docker setup
uses: docker://golang:1.18-alpine3.16
with:
entrypoint: /github/workspace/.github/workflows/docker/alpine_build_entrypoint.sh
- name: create archive file
run: |
gzip ${FILENAME}
echo "---- dump gzip file ----"
ls -l generateblock*
- name: output url
id: get_url
run: echo "::set-output name=upload_url::${{ needs.create_releases.outputs.release_url }}"
- name: Upload Release Asset
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.get_url.outputs.upload_url }}
asset_path: ./${{ env.FILENAME }}.gz
asset_name: ${{ env.FILENAME }}}.gz
asset_content_type: application/gzip

0 comments on commit e00f7d4

Please sign in to comment.