Skip to content

bump golang version to 1.23.1 #96

bump golang version to 1.23.1

bump golang version to 1.23.1 #96

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: "[preparation] checkout"
uses: actions/[email protected]
- name: "[preparation] set up golang"
uses: actions/[email protected]
with:
go-version-file: go.mod
- name: "[preparation] set up qemu"
uses: docker/[email protected]
- name: Set up Docker Buildx
uses: docker/[email protected]
with:
driver-opts: image=moby/buildkit:v0.10.6
- 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 (portainerci/portainer-updater:pr${{ github.event.pull_request.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 (portainerci/portainer-updater:develop)"
if: ${{ github.ref == 'refs/heads/develop' }}
run: |
"${GITHUB_WORKSPACE}/build/build_and_push.sh" portainerci develop