Skip to content

feat(portainer): sync version with license [EE-5765] #48

feat(portainer): sync version with license [EE-5765]

feat(portainer): sync version with license [EE-5765] #48

Workflow file for this run

name: Build develop docker image to Portainer CI
on:
push:
branches:
- develop
pull_request:
branches:
- develop
env:
GITHUB_PR_NUMBER: ${{ github.event.pull_request.number }}
jobs:
build:
runs-on: ubuntu-latest
environment:
name: staging
steps:
- name: checkout code
uses: actions/checkout@v2
# https://github.com/docker/setup-qemu-action
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
# https://github.com/docker/setup-buildx-action
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
with:
driver-opts: image=moby/buildkit:v0.10.6
- uses: actions/setup-go@v3
with:
go-version: "1.19"
- name: login to docker hub
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
- name: build the image to portainer ci with PR number
if: ${{ github.event.pull_request.number != '' }}
run: |
"${GITHUB_WORKSPACE}/build/build_and_push.sh" portainerci pr$GITHUB_PR_NUMBER
- name: build the image to portainer ci ( Develop Latest )
if: ${{ github.ref == 'refs/heads/develop' }}
run: |
"${GITHUB_WORKSPACE}/build/build_and_push.sh" portainerci develop