forked from USACE/mcat-ras
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (34 loc) · 1.01 KB
/
build-release.yml
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
30
31
32
33
34
35
name: CI RAS Pipeline
on:
push:
branches: [main]
jobs:
build-container:
name: Build Docker Container
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build Container
run: |
docker build . --target prod -t dewberrycsi/mcat-ras:v2-dev-latest
- name: Bump a new Release and update Version
uses: actions/checkout@v2
with:
fetch-depth: '0'
- name: Bump version and push tag
uses: anothrNick/[email protected]
id: update-tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
RELEASE_BRANCHES: main
- name: Login to DockerHub
env:
DOCKER_USER: ${{secrets.DOCKER_USER}}
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
run: |
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- name: Push Container to DockerHub
run: |
docker push dewberrycsi/mcat-ras:v2-dev-latest