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