Skip to content

Release v1.3.5

Release v1.3.5 #1

Workflow file for this run

# .github/workflows/docker-publish.yml
#
# Builds and pushes the PolyASE Docker image to Docker Hub
# whenever a new release is published on GitHub.
#
# Required secrets (set in GitHub → Settings → Secrets → Actions):
# DOCKERHUB_USERNAME – your Docker Hub username (nadjano)
# DOCKERHUB_TOKEN – a Docker Hub access token (not your password)
# Create one at: https://hub.docker.com/settings/security
name: Publish Docker image
on:
release:
types: [published]
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract version tag from release
id: meta
run: |
# Strips the leading 'v' from the tag, e.g. v1.3.3 → 1.3.3
VERSION=${GITHUB_REF_NAME#v}
echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: |
nadjano/polyase:${{ steps.meta.outputs.version }}
nadjano/polyase:latest