Skip to content

Fix source not found #32

Fix source not found

Fix source not found #32

Workflow file for this run

name: Release Docker images
on:
push:
tags: [ 'v*.*.*' ]
branches:
- 'master'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install Compose
uses: ndeloof/[email protected]
with:
version: v2.1.0 # defaults to 'latest'
legacy: true # will also install in PATH as `docker-compose`
- name: Extract tag name
if: startsWith(github.ref, 'refs/tags/')
id: tag
uses: actions/[email protected]
with:
github-token: ${{ secrets.ACCESS_TOKEN }}
script: |
return context.payload.ref.replace(/\/refs\/tags\//, '');
- uses: actions/checkout@v3
- name: check
run: |
echo password: ${{secrets.DOCKERHUB_TOKEN}}
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build NF's images
if: startsWith(github.ref, 'refs/tags/')
run: ./script/release.sh ${{ steps.tag.outputs.result }}
- name: Build NF's images
if: github.ref == 'refs/heads/master'
run: ./script/release.sh