Mayank
5 years ago
2 changed files with 49 additions and 51 deletions
@ -1,47 +1,47 @@ |
|||
# name: Automatically Build image on tag ONLY |
|||
# on: |
|||
# push: |
|||
# tags: [ '*' ] |
|||
name: Automatically Build image on tag ONLY |
|||
on: |
|||
push: |
|||
tags: [ '*' ] |
|||
|
|||
# jobs: |
|||
# build: |
|||
jobs: |
|||
build: |
|||
|
|||
# runs-on: ubuntu-18.04 |
|||
runs-on: ubuntu-18.04 |
|||
|
|||
# steps: |
|||
|
|||
# - uses: actions/checkout@v1 |
|||
# - name: Run Apt-get update |
|||
# run: sudo apt-get update |
|||
|
|||
# - name: Install Dependencies |
|||
# run: sudo apt-get -y install quilt qemu-user-static debootstrap bsdtar |
|||
|
|||
# - name: Enable experimental features in Docker |
|||
# run: | |
|||
# sudo rm -rf /etc/docker/daemon.json |
|||
# echo '{"experimental": true}' | sudo tee -a /etc/docker/daemon.json |
|||
# sudo systemctl restart docker |
|||
|
|||
# - name: Run Build script |
|||
# run: sudo ./build.sh |
|||
|
|||
# - name: Copy ZIP to current working dir |
|||
# run: cp deploy/*.zip ./ |
|||
|
|||
# - name: Debug current working dir |
|||
# run: ls -la |
|||
|
|||
# # - name: Release Image to placeholder or release |
|||
# # uses: meeDamian/github-release@2.0 |
|||
# # if: startsWith(github.ref, 'refs/tags/') |
|||
# # with: |
|||
# # gzip: false |
|||
# # files: "*.zip" |
|||
# # token: ${{ secrets.GITHUB_TOKEN }} |
|||
# # allow_override: true |
|||
|
|||
# - name: Upload artifact |
|||
# uses: actions/upload-artifact@v2 |
|||
# with: |
|||
# path: "*.zip" |
|||
steps: |
|||
|
|||
- uses: actions/checkout@v1 |
|||
- name: Run Apt-get update |
|||
run: sudo apt-get update |
|||
|
|||
- name: Install Dependencies |
|||
run: sudo apt-get -y install quilt qemu-user-static debootstrap bsdtar |
|||
|
|||
- name: Enable experimental features in Docker |
|||
run: | |
|||
sudo rm -rf /etc/docker/daemon.json |
|||
echo '{"experimental": true}' | sudo tee -a /etc/docker/daemon.json |
|||
sudo systemctl restart docker |
|||
|
|||
- name: Run Build script |
|||
run: sudo ./build.sh |
|||
|
|||
- name: Copy ZIP to current working dir |
|||
run: cp deploy/*.zip ./ |
|||
|
|||
- name: Debug current working dir |
|||
run: ls -la |
|||
|
|||
# - name: Release Image to placeholder or release |
|||
# uses: meeDamian/github-release@2.0 |
|||
# if: startsWith(github.ref, 'refs/tags/') |
|||
# with: |
|||
# gzip: false |
|||
# files: "*.zip" |
|||
# token: ${{ secrets.GITHUB_TOKEN }} |
|||
# allow_override: true |
|||
|
|||
- name: Upload artifact |
|||
uses: actions/upload-artifact@v2 |
|||
with: |
|||
path: "*.zip" |
|||
|
Loading…
Reference in new issue