-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use github actions instead of travis
- Loading branch information
1 parent
affb5a5
commit 1b8aba6
Showing
4 changed files
with
74 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: "Build and push" | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
|
||
jobs: | ||
publish: | ||
name: Publish | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/[email protected] | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build | ||
uses: docker/build-push-action@v2 | ||
with: | ||
load: true | ||
tags: ghcr.io/cristianhenzel/docker-mkiso:latest | ||
context: ./ | ||
file: ./Dockerfile | ||
cache-from: ghcr.io/cristianhenzel/docker-mkiso:latest | ||
|
||
- name: Push | ||
run: docker push "ghcr.io/cristianhenzel/docker-mkiso:latest" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: "Create ISO" | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0,12 * * *' | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Get current date | ||
id: date | ||
run: echo "::set-output name=date::$(date +'%Y%m%d-%H%M%S')" | ||
|
||
- name: Create min ISO | ||
run: | | ||
docker run -i --rm -v /data:/data \ | ||
-e MKISO_ADD_PACKAGES="curl nano openssh-server" \ | ||
-e MKISO_COUNTRYCODE="ro" \ | ||
-e MKISO_FILE_NAME="debian-min.iso" \ | ||
-e MKISO_ROOT_PASSWORD="root" \ | ||
-e MKISO_TIMEZONE="Europe\/Bucharest" \ | ||
ghcr.io/cristianhenzel/docker-mkiso:latest | ||
- name: Create dev ISO | ||
run: | | ||
docker run -i --rm -v /data:/data \ | ||
-e MKISO_ADD_PACKAGES="cifs-utils ctop curl docker.io docker-compose git htop make nano openssh-server python3-pip wget" \ | ||
-e MKISO_COUNTRYCODE="ro" \ | ||
-e MKISO_FILE_NAME="debian-dev.iso" \ | ||
-e MKISO_ROOT_PASSWORD="root" \ | ||
-e MKISO_TIMEZONE="Europe\/Bucharest" \ | ||
ghcr.io/cristianhenzel/docker-mkiso:latest | ||
- name: Release ISOs | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: /data/*.iso | ||
name: ${{ steps.date.outputs.date }} | ||
tag_name: ${{ steps.date.outputs.date }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters