Skip to content

Commit

Permalink
Merge pull request #21 from RapidCodeLab/develop
Browse files Browse the repository at this point in the history
github actions added
  • Loading branch information
RapidCodeLab committed Nov 18, 2023
2 parents 31acce1 + d3648f0 commit 3ccd932
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Deploy Docker image to Docker Hub
on:
push:
tags:
- 'v[0-9].[0-9]+.[0-9]+'
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Extract Version
id: version_step
run: |
echo "##[set-output name=version;]VERSION=${GITHUB_REF#$"refs/tags/v"}"
echo "##[set-output name=version_tag;]$GITHUB_REPOSITORY:${GITHUB_REF#$"refs/tags/v"}"
echo "##[set-output name=latest_tag;]$GITHUB_REPOSITORY:latest"
- name: Print Version
run: |
echo ${{steps.version_step.outputs.version_tag}}
echo ${{steps.version_step.outputs.latest_tag}}
- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}

- name: PrepareReg Names
id: read-docker-image-identifiers
run: |
echo VERSION_TAG=$(echo ${{ steps.version_step.outputs.version_tag }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV
echo LASTEST_TAG=$(echo ${{ steps.version_step.outputs.latest_tag }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: |
${{env.VERSION_TAG}}
${{env.LASTEST_TAG}}
build-args: |
${{steps.version_step.outputs.version}}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Server-Side (S2S) Header Bidding Solution
### We building better RTB ;)
![Docker Image Version (latest by date)](https://img.shields.io/docker/v/rapidcodelab/rapid-prebid-server?style=flat-square)
![Docker Image Size (tag)](https://img.shields.io/docker/image-size/rapidcodelab/rapid-prebid-server/latest?style=flat-square)
![Scrutinizer build (GitHub/Bitbucket)](https://img.shields.io/scrutinizer/build/g/RapidCodeLab/rapid-prebid-server/main?style=flat-square)
[![GitHub license](https://img.shields.io/github/license/RapidCodeLab/rapid-prebid-server?style=flat-square)](https://github.com/RapidCodeLab/rapid-prebid-server/blob/main/LICENSE)
![GitHub top language](https://img.shields.io/github/languages/top/RapidCodeLab/rapid-prebid-server?style=flat-square)
Expand Down

0 comments on commit 3ccd932

Please sign in to comment.