-
Notifications
You must be signed in to change notification settings - Fork 574
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e514f5a
commit b01714f
Showing
4 changed files
with
67 additions
and
2 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
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,63 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a single version of Python | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | ||
|
||
name: Docker Build | ||
|
||
on: | ||
pull_request: | ||
# branches: [ master ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
||
get_version: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Retrieve version and Changelog | ||
id: get_version | ||
run: | | ||
echo icloudpd_version=$(cat setup.py | grep version= | cut -d'"' -f 2) >> $GITHUB_OUTPUT | ||
echo 'icloudpd_changelog<<EOF' >> $GITHUB_OUTPUT | ||
scripts/extract_releasenotes CHANGELOG.md >> $GITHUB_OUTPUT | ||
echo 'EOF' >> $GITHUB_OUTPUT | ||
- name: Log version and Changelog | ||
run: | | ||
echo "icloudpd_version=${{steps.get_version.outputs.icloudpd_version}}" | ||
echo "icloudpd_changelog=${{steps.get_version.outputs.icloudpd_changelog}}" | ||
outputs: | ||
icloudpd_version: ${{steps.get_version.outputs.icloudpd_version}} | ||
icloudpd_changelog: ${{steps.get_version.outputs.icloudpd_changelog}} | ||
|
||
build_docker: | ||
runs-on: ubuntu-latest | ||
needs: [get_version] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Builder instance name | ||
run: echo ${{ steps.buildx.outputs.name }} | ||
|
||
- name: Available platforms | ||
run: echo ${{ steps.buildx.outputs.platforms }} | ||
|
||
- name: Build Release Docker | ||
uses: docker/build-push-action@v3 | ||
with: | ||
context: . | ||
file: ./Dockerfile | ||
platforms: linux/amd64,linux/arm64,linux/386,linux/arm/v7,linux/arm/v6 | ||
push: false | ||
tags: | | ||
icloudpd/icloudpd:latest | ||
icloudpd/icloudpd:${{needs.get_version.outputs.icloudpd_version}} |
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
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