mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 01:08:35 +00:00
refactor(Docker): remove prod container distinction (#17419)
* refactor(Docker): remove prod containers * workflows: use buildx * properly set tags * comment in Dockerfile * set docker build context * minor CI changes * CI: docker build args shouldnt have quotes * CI: using matrix and caching is too much work * CI: I hate yaml * CI: It was a typo * CI: extra build removed * CI: appease the linter * fixup! CI: appease the linter * fixup! CI: appease the linter * apps: docker: remove extraneous files
This commit is contained in:
38
.github/actions/docker-tag-and-build/action.yml
vendored
Normal file
38
.github/actions/docker-tag-and-build/action.yml
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
name: docker tag and build
|
||||
description: a helper action to shorten generating docker tags and building
|
||||
inputs:
|
||||
component-name:
|
||||
description: name of the component/docker image (eg worldserver, authserver)
|
||||
type: string
|
||||
required: true
|
||||
push:
|
||||
description: whether to push the image or not
|
||||
type: boolean
|
||||
required: true
|
||||
version:
|
||||
description: version tag to use for docker image
|
||||
required: true
|
||||
type: string
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Get Docker Metadata
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: acore/ac-wotlk-${{ inputs.component-name }}
|
||||
tags: |
|
||||
type=raw,value=${{ inputs.version }}
|
||||
type=ref,event=branch
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: ${{ github.workspace }}
|
||||
file: apps/docker/Dockerfile
|
||||
push: ${{ inputs.push }}
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
build-args: |
|
||||
USER_ID=1000
|
||||
GROUP_ID=1000
|
||||
DOCKER_USER=acore
|
||||
Reference in New Issue
Block a user