-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (24 loc) · 930 Bytes
/
docker-image.yml
File metadata and controls
29 lines (24 loc) · 930 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
27
28
29
name: Docker Image CI
on:
push:
tags: [ v*.*.* ]
jobs:
build_and_push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set version from tag
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Build the Docker image
run: docker build . --file Dockerfile --tag figurehook/reverse_proxy:${{ env.RELEASE_VERSION }}
- name: Docker Login
# You may pin to the exact commit or the version.
# uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
uses: docker/login-action@v1.10.0
with:
# Username used to log against the Docker registry
username: figurehook
# Password or personal access token used to log against the Docker registry
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Push image
run: docker push figurehook/reverse_proxy:${{ env.RELEASE_VERSION }}