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