Merge pull request #117 from free5gc/docs-remove-vagrant #59
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |