Skip to content

Commit

Permalink
Updating github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
maplesond committed Feb 23, 2023
1 parent 4d19e20 commit 6450615
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 76 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/branch_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Feature Branch CI

on:
push:
branches-ignore: [ "master" ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3

- name: Build and test the Docker image
run: docker build . --file Dockerfile --tag sbastkowski/quatradis:$(date +%s)

40 changes: 0 additions & 40 deletions .github/workflows/build.yml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Create Github Release

on:
push:
branches: [ "master" ]
tags:
- '*'

Expand All @@ -10,8 +11,10 @@ jobs:
name: Create Release
runs-on: ubuntu-latest
steps:

- name: Checkout code
uses: actions/checkout@v2

- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand All @@ -22,3 +25,23 @@ jobs:
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

- name: Log in to Docker Hub
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: sbastkowski/quatradis

- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
36 changes: 0 additions & 36 deletions .github/workflows/publish.yml

This file was deleted.

0 comments on commit 6450615

Please sign in to comment.