chore(CI): pin Godot Engine version in container image #36
Workflow file for this run
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
# Build and push the Docker builder image which contain all of the build | |
# dependencies for OpenGamepadUI | |
name: Create and publish a Docker image | |
# Only trigger building the Docker image if the Dockerfile has changed. | |
on: | |
push: | |
paths: | |
- "docker/Dockerfile" | |
- ".github/workflows/docker.yaml" | |
env: | |
IMAGE_NAME: ghcr.io/shadowblip/opengamepadui-builder | |
jobs: | |
build-and-push-image: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Log in to Docker registry | |
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin | |
- name: Build and push latest Docker image | |
run: make docker-builder-push | |
- name: Build and push versioned Docker image | |
run: make docker-builder-push IMAGE_TAG=$(grep 'ARG GODOT_VER' docker/Dockerfile | cut -d'=' -f2) |