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
|
|
|
|
2021-08-30 10:20:14 +00:00
|
|
|
jobs:
|
|
|
|
|
|
|
|
experimental:
|
|
|
|
if: github.repository == 'traefik/traefik'
|
|
|
|
name: Build experimental image on branch
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
- name: Branch name
|
|
|
|
run: echo ${GITHUB_REF##*/}
|
|
|
|
|
|
|
|
- name: Build docker experimental image
|
|
|
|
run: docker build -t traefik/traefik:experimental-${GITHUB_REF##*/} -f exp.Dockerfile .
|
|
|
|
|
|
|
|
- name: Login to Docker Hub
|
|
|
|
uses: docker/login-action@v1
|
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
|
|
|
|
- name: Push to Docker Hub
|
|
|
|
run: docker push traefik/traefik:experimental-${GITHUB_REF##*/}
|