Skip to content

Commit

Permalink
Arrange github workflows
Browse files Browse the repository at this point in the history
Signed-off-by: gatici <[email protected]>
  • Loading branch information
gatici committed Jan 17, 2024
1 parent 5c30540 commit 6f9d0ea
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright 2022 Intel Corporation
name: Docker image for dbtestapp

on:
push:
branches:
- main
tags:
- v*

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'

- name: Build and push Docker image
run: |
cd mongoapi/dbtestapp
make docker-build
make docker-push
3 changes: 1 addition & 2 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,10 @@ jobs:
with:
go-version-file: 'go.mod'

- name: Build and push Docker image
- name: Build Docker image
run: |
cd mongoapi/dbtestapp
make docker-build
make docker-push
build:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 6f9d0ea

Please sign in to comment.