Skip to content
This repository was archived by the owner on Oct 31, 2021. It is now read-only.

Commit c0b54b3

Browse files
committed
Building container in github actions.
1 parent f3b2e78 commit c0b54b3

File tree

3 files changed

+19
-60
lines changed

3 files changed

+19
-60
lines changed

.github/workflows/incoming.yml

+1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ jobs:
8585
docker:
8686
needs:
8787
- test
88+
- "pg-test"
8889
name: Docker
8990
runs-on: ubuntu-latest
9091
steps:

.github/workflows/main.yaml

+18
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,24 @@ jobs:
7171
with:
7272
report_paths: '/junit.xml'
7373
check_name: 'PostgreSQL Test Summary'
74+
container:
75+
needs:
76+
- "test"
77+
- "pg-test"
78+
name: Container
79+
runs-on: ubuntu-latest
80+
steps:
81+
- uses: actions/checkout@v2
82+
- name: Build and push ghcr.io
83+
uses: docker/build-push-action@v1
84+
with:
85+
registry: ghcr.io
86+
username: ${{ github.actor }}
87+
password: ${{ secrets.GITHUB_TOKEN }}
88+
dockerfile: Dockerfile
89+
path: .
90+
tags: ${{ env.GITHUB_SHA }}
91+
repository: monetr/rest-api
7492
docs-deploy:
7593
needs:
7694
- test

tools/deployer/main.go

-60
This file was deleted.

0 commit comments

Comments
 (0)