-
Notifications
You must be signed in to change notification settings - Fork 2
26 lines (26 loc) · 921 Bytes
/
docker-build.yml
File metadata and controls
26 lines (26 loc) · 921 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: Build and publish Docker image
on:
release:
types: [published]
jobs:
push_to_registry:
name: Build and publish
runs-on: ubuntu-20.04
steps:
- name: Get release tag
id: tag_name
run: echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/}
- name: Check out the repo
uses: actions/checkout@v2
- name: Login to DockerHub
run: echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
- name: Build image
env:
SOURCE_TAG: ${{ steps.tag_name.outputs.SOURCE_TAG }}
run: ./docker-image/build.sh
- name: Docker Hub Description
uses: peter-evans/dockerhub-description@v2
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKERHUB_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKERHUB_REPOSITORY: ivanpiskunov/sectools