Skip to content

v1.3.10

v1.3.10 #33

Workflow file for this run

name: CD
on:
release:
types: [released, edited]
jobs:
release-note:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: ppodds/relno-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
docker:
runs-on: ubuntu-latest
name: "Build Docker image and push to Docker Hub"
steps:
- name: Get version string
id: get-version
run: |
tag=${{github.event.release.tag_name}}
echo "::set-output name=version::${tag:1}"
- uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build frontend and push
uses: docker/build-push-action@v4
with:
push: true
tags: ppodds/ncuplus-frontend:latest,ppodds/ncuplus-frontend:${{ steps.get-version.outputs.version }}
file: Dockerfile.frontend
- name: Build backend and push
uses: docker/build-push-action@v4
with:
push: true
tags: ppodds/ncuplus-backend:latest,ppodds/ncuplus-backend:${{ steps.get-version.outputs.version }}
file: Dockerfile.backend