From 4bcffaafb99ebdbbbaa09fc3e1260950ba9f098a Mon Sep 17 00:00:00 2001 From: ILoveYaToo Date: Fri, 22 Jan 2021 04:09:50 -0500 Subject: [PATCH] test upload --- .semaphore/upload.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .semaphore/upload.yml diff --git a/.semaphore/upload.yml b/.semaphore/upload.yml new file mode 100644 index 0000000..c77488e --- /dev/null +++ b/.semaphore/upload.yml @@ -0,0 +1,30 @@ +version: v1.0 +name: Pipeline 3 +agent: + machine: + type: e1-standard-2 + os_image: ubuntu1804 +blocks: + - name: Upload + task: + jobs: + - name: 'Alpine Upload' + commands: + - checkout + - cd alpine + - artifact pull workflow postal-alpine-container.tar + - docker load -i postal-alpine-container.tar + - echo "$DOCKER_GITHUB_PASS" | docker login docker.pkg.github.com -u "$DOCKER_GITHUB_USER" --password-stdin + - docker tag catdeployed/postal:alpine docker.pkg.github.com/CatDeployed/docker-postal/postal:alpine + - docker tag catdeployed/postal:alpine docker.pkg.github.com/CatDeployed/docker-postal/postal:latest + - docker push docker.pkg.github.com/CatDeployed/docker-postal/postal:alpine + - docker push docker.pkg.github.com/CatDeployed/docker-postal/postal:latest + - name: 'Ubuntu Upload' + commands: + - checkout + - cd ubuntu + - artifact pull workflow postal-ubuntu-container.tar + - docker load -i postal-ubuntu-container.tar + - echo "$DOCKER_GITHUB_PASS" | docker login docker.pkg.github.com -u "$DOCKER_GITHUB_USER" --password-stdin + - docker tag catdeployed/postal:ubuntu docker.pkg.github.com/CatDeployed/docker-postal/postal:ubuntu + - docker push docker.pkg.github.com/CatDeployed/docker-postal/postal:ubuntu