Skip to content

Commit

Permalink
ci: test docker pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
jjjermiah committed Jan 22, 2024
1 parent 0ff2ded commit 20a43ad
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# This script is used to build a docker image and push it to docker hub

name: Build and Push Docker Image

on:
push:
branches:
[devel]

jobs:
build:
runs-on: ubuntu-latest
# first we need to check out the code
steps:
- uses: actions/checkout@v2

# The docker image tag is the git release tag
# If there is no release tag, then we will use the branch name
# as the docker image tag
- name: Get latest tag name
id: last_tag
run: echo ::set-output name=tag::$(git describe --tags --abbrev=0 | sed 's/^v//')

0 comments on commit 20a43ad

Please sign in to comment.