Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm360 committed Oct 8, 2024
1 parent 7bddb73 commit f40125a
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/stable-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Stable release on Docker Hub

on:
push:
tags:
- 'v*.*.*'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: etherna/bee-turbo
tags: |
type=semver,pattern=v{{major}}
type=semver,pattern=v{{major}}.{{minor}}
type=semver,pattern=v{{version}}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
41 changes: 41 additions & 0 deletions .github/workflows/unstable-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Unstable release on Docker Hub

on:
push:
branches:
- dev

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: etherna/bee-turbo
tags: |
type=ref,event=branch
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
7 changes: 7 additions & 0 deletions BeeTurbo.sln
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BeeTurbo", "src\BeeTurbo\Be
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{BC8B908F-0A65-4E3D-BD12-1F38C87BBC43}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{8AC33738-1D77-4D8C-AF20-2BB2FA69D024}"
ProjectSection(SolutionItems) = preProject
.github\workflows\unstable-release.yml = .github\workflows\unstable-release.yml
.github\workflows\stable-release.yml = .github\workflows\stable-release.yml
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -24,5 +30,6 @@ Global
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{41265068-0289-4718-A0C0-7BE6D0E7EC34} = {BC8B908F-0A65-4E3D-BD12-1F38C87BBC43}
{8AC33738-1D77-4D8C-AF20-2BB2FA69D024} = {D24883E6-EC9D-48F5-9977-AFDC9900EA80}
EndGlobalSection
EndGlobal

0 comments on commit f40125a

Please sign in to comment.