👷 Fix Docker login issue

This commit is contained in:
Jan Oberhauser 2020-01-02 13:41:28 -06:00
parent 38b9c9212a
commit 9f03c9d2aa

View file

@ -16,12 +16,8 @@ jobs:
- name: Get the version
id: vars
run: echo ::set-output name=tag::$(echo ${GITHUB_REF:14})
- name: Log in to registry
uses: actions/docker/login@master
env:
DOCKER_REGISTRY_URL: registry.hub.docker.com
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
- name: Log in to Docker registry
run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
- 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