forked from mattermost/mattermost
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (31 loc) · 1.1 KB
/
build-server-image.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: BuildEnv Docker Image
on:
push:
branches:
- master
paths:
- server/build/Dockerfile.buildenv
- .github/workflows/build-server-image.yml
jobs:
build-image:
runs-on: ubuntu-22.04
steps:
- name: buildenv/checkout-repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: buildenv/calculate-golang-version
working-directory: server/
id: go
run: echo GO_VERSION=$(cat .go-version) >> "${GITHUB_OUTPUT}"
- name: buildenv/docker-login
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
with:
username: ${{ secrets.DOCKERHUB_DEV_USERNAME }}
password: ${{ secrets.DOCKERHUB_DEV_TOKEN }}
- name: buildenv/build-and-push
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0
with:
provenance: false
file: server/build/Dockerfile.buildenv
push: true
pull: true
tags: mattermostdevelopment/mattermost-build-server:${{ steps.go.outputs.GO_VERSION }}