Skip to content

Bump get-func-name from 2.0.0 to 2.0.2 in /test/njs (#59) #110

Bump get-func-name from 2.0.0 to 2.0.2 in /test/njs (#59)

Bump get-func-name from 2.0.0 to 2.0.2 in /test/njs (#59) #110

Workflow file for this run

name: build
on:
push:
branches:
- master
tags:
- v*
pull_request:
jobs:
image:
runs-on: ubuntu-latest
env:
DOCKERHUB_USERNAME: levonet
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: levonet/nginx
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
flavor: |
latest=auto
suffix=-alpine,onlatest=false
- name: Login to DockerHub
if: ${{ github.event_name != 'pull_request' }}
uses: docker/login-action@v1
with:
username: ${{ env.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and export to Docker
uses: docker/build-push-action@v2
with:
context: .
load: true
tags: ${{ fromJSON(steps.meta.outputs.json).tags[0] }}
- name: Run test
env:
DOCKER_IMAGE: ${{ fromJSON(steps.meta.outputs.json).tags[0] }}
run: |
cd test
make test
- name: Build and push
if: ${{ github.event_name != 'pull_request' }}
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Docker Hub Description
if: ${{ github.event_name != 'pull_request' }}
uses: peter-evans/dockerhub-description@v2
with:
username: ${{ env.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
repository: levonet/nginx