cge-unstable job now also wants GH token, to update GH image #27
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
# ---------------------------------------------------------------------------- | |
# GitHub Actions workflow that updates Docker image of Castle Game Engine | |
# with latest unstable (snapshot) CGE version. | |
# That is, Docker image kambi/castle-engine-cloud-builds-tools:cge-unstable, | |
# which is | |
# - cge-unstable tag | |
# - of https://hub.docker.com/r/kambi/castle-engine-cloud-builds-tools/ . | |
# | |
# See https://castle-engine.io/docker for more about this Docker image. | |
# ---------------------------------------------------------------------------- | |
name: Update CGE Docker Image cge-unstable | |
on: | |
push: | |
pull_request: | |
repository_dispatch: | |
types: [cge-snapshot-changed] | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Update Docker image | |
env: | |
DOCKER_USER: ${{ secrets.DOCKER_USER }} | |
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | |
DOCKER_GITHUB_USER: ${{ secrets.DOCKER_GITHUB_USER }} | |
DOCKER_GITHUB_TOKEN: ${{ secrets.DOCKER_GITHUB_TOKEN }} | |
run: ./build-cge-unstable.sh | |
# On self-hosted machine, we would do additionally | |
# ./remove_unused_docker_images.sh | |
# Seems not necessary on GH-hosted machine, as they are cleaned each time. |