Skip to content

Merge pull request #3 from exile1340/version-8-12-2 #2

Merge pull request #3 from exile1340/version-8-12-2

Merge pull request #3 from exile1340/version-8-12-2 #2

Workflow file for this run

name: Build and Push Docker Image
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract tag name
id: tag_name
run: echo ::set-output name=TAG::${GITHUB_REF#refs/tags/}
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: featherjr/elasticsearch-step-ca:${{ steps.tag_name.outputs.TAG }}