Skip to content

v2.5.0

v2.5.0 #1

Workflow file for this run

name: Build Release Image
on:
release:
types: [created]
jobs:
build-and-push:
if: github.repository_owner == 'cypht-org'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Get tags
id: tags
run: |
echo "tags=${{ github.event.release.tag_name }}" >> $GITHUB_OUTPUT
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64
file: ./docker/Dockerfile
push: true
tags: |
cypht/cypht:${{ steps.tags.outputs.tags }}
cypht/cypht:latest
debug: false
- name: Log out from Docker Hub
run: docker logout