Skip to content

🐋🚀 Publish images #8

🐋🚀 Publish images

🐋🚀 Publish images #8

Workflow file for this run

name: 🐋🚀 Publish images
on:
workflow_dispatch:
pull_request:
jobs:
build:
name: 🐋🚀 Publish ${{ matrix.name }}
permissions:
contents: read
packages: write
runs-on: windows-2022
strategy:
fail-fast: false
matrix:
include:
- name: server
dockerfile: docker/Dockerfile.server
- name: servercore
dockerfile: docker/Dockerfile.servercore
steps:
- name: ⏬ Checkout repository
uses: actions/checkout@v4
- name: ⚙️ Set UV version
id: set-uv-version
shell: bash
run: echo "uv-version=$(cat .version)" >> "$GITHUB_OUTPUT"
- name: 👷🐋 Build image
id: test-base-image
uses: mr-smithers-excellent/docker-build-push@v6
with:
image: uv-windows
tags: ${{ steps.set-uv-version.outputs.uv-version }}-${{ matrix.name }}, latest-${{ matrix.name }}
registry: ghcr.io
dockerfile: ${{ matrix.dockerfile }}
buildArgs: UV_VERSION=${{ steps.set-uv-version.outputs.uv-version }}
pushImage: false
- name: 🧪🐋 Run test
uses: mr-smithers-excellent/docker-build-push@v6
with:
image: test-runner-image
dockerfile: test/Dockerfile
registry: ghcr.io
buildArgs: |
BASE_IMAGE=${{ steps.test-base-image.outputs.imageFullName }}:latest-${{ matrix.name }}
pushImage: false
- name: 🚀🐋 Push image
if: github.event_name != 'pull_request'
uses: mr-smithers-excellent/docker-build-push@v6
with:
image: uv-windows
registry: ghcr.io
dockerfile: ${{ matrix.dockerfile }}
buildArgs: UV_VERSION=${{ steps.set-uv-version.outputs.uv-version }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}