-
Notifications
You must be signed in to change notification settings - Fork 2
28 lines (25 loc) · 935 Bytes
/
config.yml
File metadata and controls
28 lines (25 loc) · 935 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
on:
push:
tags:
- '*'
jobs:
deploy_by_tag:
name: Release Branch Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Login to docker hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Build, tag, and push to docker hub
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: photon/app
GITHUB_TOKEN: ${{ secrets.TOKEN_GIT }}
run: |
docker build -t "gradeup/ssh-manager:${{ github.ref_name }}" --build-arg="GITHUB_TOKEN=${{ secrets.TOKEN_GIT }}" .
echo ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} --password-stdin
docker push "gradeup/ssh-manager:${{ github.ref_name }}"