Commit 49b5b836 authored by Kevin Daudt's avatar Kevin Daudt

docker-image: fix docker tag command

The image name is missing, causing the command to fail.
parent 9b3dab35
Pipeline #42 passed with stage
in 16 seconds
......@@ -8,7 +8,7 @@ stages:
.build:
stage: build
script:
- docker build -t alinelinux/$CI_PROJECT_NAME:latest-$ARCH .
- docker build -t $CI_PROJECT_NAME:latest-$ARCH .
build-s390x:
extends: .build
......@@ -22,9 +22,10 @@ build-s390x:
stage: upload
only:
- master
script:
- docker tag :latest-$ARCH alpinelinux/$CI_RPOJECT_NAME:latest-$ARCH
before_script:
- docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
script:
- docker tag $CI_PROJECT_NAME:latest-$ARCH alpinelinux/$CI_RPOJECT_NAME:latest-$ARCH
- docker push alpinelinux/$CI_PROJECT_NAME:latest-$ARCH
upload-s390x:
......@@ -44,7 +45,8 @@ create-manifest:
tags:
- docker-alpine
- s390x
script:
before_script:
- docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
script:
- docker manifest create --amend alpinelinux/$CI_PROJECT_NAME:latest alpinelinux/$CI_PROJECT_NAME:latest-s390x
- docker manifest push --purge alpinelinux/$CI_PROJECT_NAME:latest
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment