Skip to content

Commit

Permalink
Add pipeline for beta releases
Browse files Browse the repository at this point in the history
  • Loading branch information
loranmutafov committed Feb 26, 2023
1 parent b5f3d67 commit 47add70
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build-beta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build a beta version

on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+-beta*

env:
IMAGE_NAME: loranmutafov/simple-bastion

jobs:
build:
name: Build and push :${{ github.ref_name }} to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

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

- name: Build Docker image
run: DOCKER_BUILDKIT=1 docker build . -t $IMAGE_NAME:${{ github.ref_name }}

- name: Push Docker image
run: docker push $IMAGE_NAME:${{ github.ref_name }}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Build a version
name: Build a stable version

on:
push:
tags:
- v*
- v[0-9]+.[0-9]+.[0-9]+

env:
IMAGE_NAME: loranmutafov/simple-bastion
Expand Down

0 comments on commit 47add70

Please sign in to comment.