trabajo-afectivo/.github/workflows/build-docker-image.yaml

26 lines
719 B
YAML
Raw Normal View History

name: build-docker-image
on:
push:
branches: [develop]
jobs:
build-docker-image:
runs-on: ubuntu-latest
env:
DOCKER_GITHUB_REPOSITORY: "zammad-docker"
DOCKER_IMAGES: "zammad"
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKER_REPOSITORY: "zammad"
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
steps:
- name: Alias GITHUB_ACTOR as REPO_USER
run: |
echo "::set-env name=REPO_USER::$GITHUB_ACTOR"
- name: Checkout code
uses: actions/checkout@master
- name: Fetch all history for all tags and branches
run: git fetch --prune --unshallow
- name: Build docker image
run: .github/docker-image-build.sh