mirror of
https://github.com/mattermost/mattermost.git
synced 2026-02-03 20:40:00 -05:00
Some checks failed
API / build (push) Waiting to run
Server CI / Compute Go Version (push) Waiting to run
Server CI / Check mocks (push) Blocked by required conditions
Server CI / Check go mod tidy (push) Blocked by required conditions
Server CI / check-style (push) Blocked by required conditions
Server CI / Check serialization methods for hot structs (push) Blocked by required conditions
Server CI / Vet API (push) Blocked by required conditions
Server CI / Check migration files (push) Blocked by required conditions
Server CI / Generate email templates (push) Blocked by required conditions
Server CI / Check store layers (push) Blocked by required conditions
Server CI / Check mmctl docs (push) Blocked by required conditions
Server CI / Postgres with binary parameters (push) Blocked by required conditions
Server CI / Postgres (push) Blocked by required conditions
Server CI / Postgres (FIPS) (push) Blocked by required conditions
Server CI / Generate Test Coverage (push) Blocked by required conditions
Server CI / Run mmctl tests (push) Blocked by required conditions
Server CI / Run mmctl tests (FIPS) (push) Blocked by required conditions
Server CI / Build mattermost server app (push) Blocked by required conditions
Web App CI / check-lint (push) Waiting to run
Web App CI / check-i18n (push) Blocked by required conditions
Web App CI / check-types (push) Blocked by required conditions
Web App CI / test (platform) (push) Blocked by required conditions
Web App CI / test (mattermost-redux) (push) Blocked by required conditions
Web App CI / test (channels shard 1/4) (push) Blocked by required conditions
Web App CI / test (channels shard 2/4) (push) Blocked by required conditions
Web App CI / test (channels shard 3/4) (push) Blocked by required conditions
Web App CI / test (channels shard 4/4) (push) Blocked by required conditions
Web App CI / upload-coverage (push) Blocked by required conditions
Web App CI / build (push) Blocked by required conditions
BuildEnv Docker Image / build-image (push) Has been cancelled
BuildEnv Docker Image / build-image-fips (push) Has been cancelled
* fixes registry used for mattermost-build-server image push and pull * fixes credentials needed for logging in to mattermosr registry
114 lines
3.9 KiB
YAML
114 lines
3.9 KiB
YAML
name: BuildEnv Docker Image
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- server/build/Dockerfile.buildenv
|
|
- server/build/Dockerfile.buildenv-fips
|
|
- .github/workflows/build-server-image.yml
|
|
pull_request:
|
|
paths:
|
|
- server/build/Dockerfile.buildenv
|
|
- server/build/Dockerfile.buildenv-fips
|
|
- .github/workflows/build-server-image.yml
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
CHAINCTL_IDENTITY: ee399b4c72dd4e58e3d617f78fc47b74733c9557/922f2d48307d6f5f
|
|
|
|
# Permissions required for chainguard-dev/setup-chainctl
|
|
permissions:
|
|
id-token: write
|
|
contents: read
|
|
|
|
jobs:
|
|
build-image:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- name: buildenv/checkout-repo
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
|
|
- name: buildenv/docker-login
|
|
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
- name: buildenv/build
|
|
uses: docker/build-push-action@1dc73863535b631f98b2378be8619f83b136f4a0 # v6.17.0
|
|
with:
|
|
provenance: false
|
|
file: server/build/Dockerfile.buildenv
|
|
load: true
|
|
push: false
|
|
pull: false
|
|
tags: mattermost/mattermost-build-server:test
|
|
|
|
- name: buildenv/test
|
|
run: |
|
|
docker run --rm mattermost/mattermost-build-server:test /bin/sh -c "go version && node --version"
|
|
|
|
- name: buildenv/calculate-golang-version
|
|
id: go
|
|
run: |
|
|
GO_VERSION=$(docker run --rm mattermost/mattermost-build-server:test go version | awk '{print $3}' | sed 's/go//')
|
|
echo "GO_VERSION=${GO_VERSION}" >> "${GITHUB_OUTPUT}"
|
|
|
|
- name: buildenv/push
|
|
if: github.ref == 'refs/heads/master'
|
|
uses: docker/build-push-action@1dc73863535b631f98b2378be8619f83b136f4a0 # v6.17.0
|
|
with:
|
|
provenance: false
|
|
file: server/build/Dockerfile.buildenv
|
|
load: false
|
|
push: true
|
|
pull: true
|
|
tags: mattermost/mattermost-build-server:${{ steps.go.outputs.GO_VERSION }}
|
|
|
|
build-image-fips:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: chainguard-dev/setup-chainctl@f4ed65b781b048c44d4f033ae854c025c5531c19 # v0.3.2
|
|
with:
|
|
identity: ${{ env.CHAINCTL_IDENTITY }}
|
|
- name: buildenv/checkout-repo
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
|
|
- name: buildenv/docker-login
|
|
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
- name: buildenv/build
|
|
uses: docker/build-push-action@1dc73863535b631f98b2378be8619f83b136f4a0 # v6.17.0
|
|
with:
|
|
provenance: false
|
|
file: server/build/Dockerfile.buildenv-fips
|
|
load: true
|
|
push: false
|
|
pull: false
|
|
tags: mattermost/mattermost-build-server-fips:test
|
|
|
|
- name: buildenv/test
|
|
run: |
|
|
docker run --rm --entrypoint bash mattermost/mattermost-build-server-fips:test -c "go version && node --version"
|
|
|
|
- name: buildenv/calculate-golang-version
|
|
id: go
|
|
run: |
|
|
GO_VERSION=$(docker run --rm --entrypoint bash mattermost/mattermost-build-server-fips:test -c "go version" | awk '{print $3}' | sed 's/go//')
|
|
echo "GO_VERSION=${GO_VERSION}" >> "${GITHUB_OUTPUT}"
|
|
|
|
- name: buildenv/push
|
|
if: github.ref == 'refs/heads/master'
|
|
uses: docker/build-push-action@1dc73863535b631f98b2378be8619f83b136f4a0 # v6.17.0
|
|
with:
|
|
provenance: false
|
|
file: server/build/Dockerfile.buildenv-fips
|
|
load: false
|
|
push: true
|
|
pull: true
|
|
tags: mattermost/mattermost-build-server-fips:${{ steps.go.outputs.GO_VERSION }}
|