Skip to content

Commit

Permalink
update build pipeline (#22)
Browse files Browse the repository at this point in the history
* update build pipeline

* updates

* updated

* Update .github/workflows/build.yml

---------

Co-authored-by: Roman <[email protected]>
  • Loading branch information
gzukel and p0mvn authored Jan 9, 2024
1 parent b7bfb9b commit 3a400f2
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,37 @@ name: "SQS UI | Build Docker Image"

on:
workflow_dispatch:
inputs:
docker_tag:
description: 'Docker tag to build'
required: false
default: ''
push:
branches: [ "main", "v*.*.*" ]
pull_request:
branches: [ "main", "v*.*.*" ]
tags:
- v[0-9]+.[0-9]+.[0-9]+
branches:
- "v[1-9][0-9]?\.[a-z]||[0-9]"
- "osmosis-main"

jobs:
build:
env:
docker_org: "osmolabs"
docker_server_url: "https://index.docker.io/v1/"
docker_repo: "sqs"
app_name: "sqs"


runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: "SET:ENV:VARS"
run: |
echo "docker_tag=ui-${GITHUB_SHA::7}" >> ${GITHUB_ENV}
if [ -z "${{ github.event.inputs.docker_tag }}" ]; then
BRANCH_OR_TAG=${GITHUB_REF#refs/*/}
echo "docker_tag=${BRANCH_OR_TAG}" >> ${GITHUB_ENV}
else
echo "docker_tag=${{ github.event.inputs.docker_tag }}" >> ${GITHUB_ENV}
fi
- name: "DOCKER:BUILD:CHECK:PUSH"
uses: iDevOps-io/idevops-git-actions/docker_build_check_tag_and_push@main
Expand Down

0 comments on commit 3a400f2

Please sign in to comment.