Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 14 additions & 27 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,31 +118,18 @@ jobs:

- # Upload the build artifacts to the release
name: Upload the build artifacts to release
uses: svenstaro/upload-release-action@v2
if: github.event_name == 'release'
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/*
file_glob: true
tag: ${{ github.ref }}

- # Get the current package version for use in Docker images
name: Parse package version for Docker images
id: get-package-version
run: |
package_version=`python ./scripts/print_current_package_version.py`
echo "package_version=$package_version" >> $GITHUB_OUTPUT

# - # Trigger building the docker images in apify/apify-actor-docker repo
# name: Trigger Docker Image Build
# uses: peter-evans/repository-dispatch@v2
# if: steps.get-release-type.outputs.docker_image_tag != ''
# with:
# token: ${{ secrets.TRIGGER_DOCKER_IMAGE_BUILD_TOKEN }}
# repository: apify/apify-actor-docker
# event-type: build-python-images
# client-payload: >
# {
# "release_tag": "${{ steps.get-release-type.outputs.docker_image_tag }}",
# "apify_sdk_version": "${{ steps.get-package-version.outputs.package_version }}"
# }
run: gh release upload ${{ github.ref_name }} dist/*
env:
GH_TOKEN: ${{ github.token }}

- # Trigger building the Python Docker images in apify/apify-actor-docker repo
name: Trigger Docker image build
run: |
PACKAGE_VERSION=`python ./scripts/print_current_package_version.py`
gh api -X POST "/repos/apify/apify-actor-docker/dispatches" \
-F event_type=build-python-images \
-F client_payload[release_tag]=${{ steps.get-release-type.outputs.docker_image_tag }} \
-F client_payload[apify_version]=$PACKAGE_VERSION
env:
GH_TOKEN: ${{ secrets.BUILD_DOCKER_IMAGES_REPOSITORY_DISPATCH_GH_TOKEN }}
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ Changelog
[1.0.0](../../releases/tag/v1.0.0) - Upcoming
---------------------------------------------

### Internal changes

- started triggering base Docker image builds when releasing a new version

[0.2.0](../../releases/tag/v0.2.0) - 2023-03-06
-----------------------------------------------

Expand Down