Skip to content

Setup M4 tr branch docker image #2

Setup M4 tr branch docker image

Setup M4 tr branch docker image #2

Workflow file for this run

name: Create a Docker image
on:
push:
branches: ['tr_EN']
paths:
- '.github/workflows/Dockerfile'
- '.github/workflows/docker.yml'
# Allows running manually
workflow_dispatch:
env:
# Image metadata
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
# Dockerfile arguments
RGBDS_REPOSITORY: https://github.com/gbdev/rgbds.git
RGBDS_VERSION: v0.7.0
OPENPYXL_REPOSITORY: https://github.com/VariantXYZ/openpyxl-variant.git
OPENPYXL_VERSION: bcedbfadcafba04fab0d9ffe2c8f001e19683497
PYTHON_VERSION_NUM: 3.10.6
PYTHON_PYSPELLCHECKER_VERSION: 0.7.2
PYTHON_DATACLASSES_VERSION: 0.6.0
FLIPS_REPOSITORY: https://github.com/Alcaro/Flips.git
FLIPS_VERSION: e12ef189900b2c720c6dcd55036a8bb43925ea53
jobs:
docker-update:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push Docker image
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
file: '.github/workflows/Dockerfile'
labels: ${{ steps.meta.outputs.labels }}
build-args: |
RGBDS_REPOSITORY=${{ env.RGBDS_REPOSITORY }}
RGBDS_VERSION=${{ env.RGBDS_VERSION }}
OPENPYXL_REPOSITORY=${{ env.OPENPYXL_REPOSITORY }}
OPENPYXL_VERSION=${{ env.OPENPYXL_VERSION }}
PYTHON_VERSION_NUM=${{ env.PYTHON_VERSION_NUM }}
PYTHON_PYSPELLCHECKER_VERSION=${{ env.PYTHON_PYSPELLCHECKER_VERSION }}
PYTHON_DATACLASSES_VERSION=${{ env.PYTHON_DATACLASSES_VERSION }}
FLIPS_REPOSITORY=${{ env.FLIPS_REPOSITORY }}
FLIPS_VERSION=${{ env.FLIPS_VERSION }}