Skip to content

Commit 6ef9b44

Browse files
authored
fixing workflow
1 parent 5412823 commit 6ef9b44

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# This is a basic workflow to help you get started with Actions
2+
name: CI
3+
# Controls when the action will run. Triggers the workflow on push or pull request
4+
# events but only for the master branch
5+
on:
6+
release:
7+
types: published
8+
9+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
10+
jobs:
11+
# This workflow contains a single job called "build"
12+
build:
13+
# The type of runner that the job will run on
14+
runs-on: ubuntu-latest
15+
# Steps represent a sequence of tasks that will be executed as part of the job
16+
steps:
17+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
18+
- uses: actions/checkout@v2
19+
- name: Build and push Docker images
20+
uses: docker/[email protected]
21+
with:
22+
username: ${{ secrets.DOCKER_USERNAME }}
23+
password: ${{ secrets.DOCKER_PASSWORD }}
24+
repository: dustinupdyke/ghosts
25+
tag_with_ref: true
26+
push: ${{ startsWith(github.ref, 'refs/tags/') }}
27+
build_args: "commit=${{ github.sha }}"
28+
dockerfile: Ghosts.Api/Dockerfile

0 commit comments

Comments
 (0)