2020-01-02 11:05:51 -08:00
|
|
|
name: Docker Image CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- n8n@*
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Get the version
|
|
|
|
id: vars
|
|
|
|
run: echo ::set-output name=tag::$(echo ${GITHUB_REF:14})
|
2020-01-02 11:41:28 -08:00
|
|
|
- name: Log in to Docker registry
|
|
|
|
run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
|
2020-01-02 11:59:55 -08:00
|
|
|
|
2020-01-02 11:05:51 -08:00
|
|
|
- name: Build the Docker image of version
|
|
|
|
run: docker build --build-arg N8N_VERSION=${{steps.vars.outputs.tag}} -t n8nio/n8n:${{steps.vars.outputs.tag}} docker/images/n8n
|
|
|
|
- name: Push Docker image of version
|
|
|
|
run: docker push n8nio/n8n:${{steps.vars.outputs.tag}}
|
|
|
|
- name: Tag Docker image with latest
|
|
|
|
run: docker tag n8nio/n8n:${{steps.vars.outputs.tag}} n8nio/n8n:latest
|
|
|
|
- name: Push docker images of latest
|
|
|
|
run: docker push n8nio/n8n:latest
|
2020-01-02 11:59:55 -08:00
|
|
|
|
2020-12-19 09:22:41 -08:00
|
|
|
- name: Build the Docker image of version (Debian)
|
|
|
|
run: docker build --build-arg N8N_VERSION=${{steps.vars.outputs.tag}} -t n8nio/n8n:${{steps.vars.outputs.tag}}-debian docker/images/n8n-debian
|
|
|
|
- name: Push Docker image of version (Debian)
|
|
|
|
run: docker push n8nio/n8n:${{steps.vars.outputs.tag}}-debian
|