Skip to content

Update build action to create a docker tags automatically for all branches #46

Update build action to create a docker tags automatically for all branches

Update build action to create a docker tags automatically for all branches #46

Workflow file for this run

# Build docker image
name: Build
on:
release:
types: [published]
pull_request:
jobs:
docker-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Docker auto tag
id: meta
uses: docker/metadata-action@v5
with:
images: faforever/faf-python-server
- name: Build and publish docker image
uses: docker/build-push-action@v6
with:
build-args: GITHUB_REF=${{ github.event_name == 'release' && github.ref_name || github.head_ref }}