2021-08-30 10:20:14 +00:00
|
|
|
name: Build experimental image on branch
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- v*
|
2021-08-30 12:24:12 +00:00
|
|
|
|
2024-01-17 10:12:05 +00:00
|
|
|
env:
|
2024-08-28 13:00:06 +00:00
|
|
|
GO_VERSION: '1.23'
|
2024-01-17 10:12:05 +00:00
|
|
|
CGO_ENABLED: 0
|
|
|
|
|
2021-08-30 10:20:14 +00:00
|
|
|
jobs:
|
|
|
|
|
|
|
|
experimental:
|
|
|
|
if: github.repository == 'traefik/traefik'
|
|
|
|
name: Build experimental image on branch
|
2024-04-22 15:04:05 +00:00
|
|
|
runs-on: ubuntu-latest
|
2021-08-30 10:20:14 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
# https://github.com/marketplace/actions/checkout
|
|
|
|
- name: Check out code
|
2024-01-09 16:00:07 +00:00
|
|
|
uses: actions/checkout@v4
|
2021-08-30 10:20:14 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
2024-06-07 14:56:04 +00:00
|
|
|
- name: Setup node
|
|
|
|
uses: actions/setup-node@v4
|
|
|
|
with:
|
|
|
|
node-version-file: webui/.nvmrc
|
|
|
|
cache: yarn
|
|
|
|
cache-dependency-path: webui/yarn.lock
|
|
|
|
|
2024-01-17 10:12:05 +00:00
|
|
|
- name: Build webui
|
2024-06-07 14:56:04 +00:00
|
|
|
working-directory: ./webui
|
2024-01-17 10:12:05 +00:00
|
|
|
run: |
|
2024-06-07 14:56:04 +00:00
|
|
|
yarn install
|
|
|
|
yarn build
|
2024-01-17 10:12:05 +00:00
|
|
|
|
|
|
|
- name: Set up Go ${{ env.GO_VERSION }}
|
|
|
|
uses: actions/setup-go@v5
|
|
|
|
with:
|
|
|
|
go-version: ${{ env.GO_VERSION }}
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: make generate binary
|
|
|
|
|
2021-08-30 10:20:14 +00:00
|
|
|
- name: Branch name
|
|
|
|
run: echo ${GITHUB_REF##*/}
|
|
|
|
|
|
|
|
- name: Login to Docker Hub
|
2024-01-17 10:12:05 +00:00
|
|
|
uses: docker/login-action@v3
|
2021-08-30 10:20:14 +00:00
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
|
2024-01-17 10:12:05 +00:00
|
|
|
- name: Set up QEMU
|
2024-07-29 13:58:04 +00:00
|
|
|
uses: docker/setup-qemu-action@v3
|
2024-01-17 10:12:05 +00:00
|
|
|
|
|
|
|
- name: Set up Docker Buildx
|
2024-07-29 13:58:04 +00:00
|
|
|
uses: docker/setup-buildx-action@v3
|
2024-01-17 10:12:05 +00:00
|
|
|
|
|
|
|
- name: Build docker experimental image
|
|
|
|
env:
|
|
|
|
DOCKER_BUILDX_ARGS: "--push"
|
|
|
|
run: |
|
|
|
|
make multi-arch-image-experimental-${GITHUB_REF##*/}
|