2020-03-04 20:23:02 +00:00
|
|
|
name: build-docker-image
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2021-02-26 10:33:05 +00:00
|
|
|
branches: [develop]
|
2020-03-04 20:23:02 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-docker-image:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
2020-03-06 12:10:59 +00:00
|
|
|
DOCKER_GITHUB_REPOSITORY: "zammad-docker"
|
2020-03-04 20:23:02 +00:00
|
|
|
DOCKER_IMAGES: "zammad"
|
|
|
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
DOCKER_REPOSITORY: "zammad"
|
|
|
|
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
steps:
|
2020-03-11 08:44:26 +00:00
|
|
|
- name: Extract REPO_USER from GITHUB_REPOSITORY ENV
|
2020-11-17 14:38:58 +00:00
|
|
|
run: echo "REPO_USER=$(echo "$GITHUB_REPOSITORY" | awk -F / '{print $1}')" >> $GITHUB_ENV
|
2020-03-04 20:23:02 +00:00
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@master
|
2020-03-05 10:43:50 +00:00
|
|
|
- name: Fetch all history for all tags and branches
|
|
|
|
run: git fetch --prune --unshallow
|
2020-03-04 20:23:02 +00:00
|
|
|
- name: Build docker image
|
|
|
|
run: .github/docker-image-build.sh
|