Skip to content

Update build action to create a docker tag on any push #1

Update build action to create a docker tag on any push

Update build action to create a docker tag on any push #1

Workflow file for this run

# Build docker image
name: Build
on:
release:
types: [published]
push:
jobs:
docker-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Extract tag name
id: vars
run: |
TAG=${GITHUB_REF_NAME//\/\#/-}
TAG=${TAG//\//-}
TAG=${TAG//\#/-}
echo "tag=$TAG" >> $GITHUB_OUTPUT
- name: Build and publish docker image
uses: docker/[email protected]
with:
repository: faforever/faf-python-server
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
build_args: GITHUB_REF=${{ steps.vars.outputs.tag }}
tag_with_ref: true