From 89b3a770a52f75596dd8e22e5e86930a80f0b338 Mon Sep 17 00:00:00 2001 From: yurak Date: Tue, 23 Jun 2020 00:34:03 +0900 Subject: [PATCH] delete pull image for tag deploy #125 --- .github/workflows/docker-image-ci.yml | 130 +++++++++++--------------- .github/workflows/java-ci.yml | 36 ------- 2 files changed, 56 insertions(+), 110 deletions(-) diff --git a/.github/workflows/docker-image-ci.yml b/.github/workflows/docker-image-ci.yml index 1f07393a4..0b0e40333 100644 --- a/.github/workflows/docker-image-ci.yml +++ b/.github/workflows/docker-image-ci.yml @@ -3,91 +3,73 @@ name: Docker Image CI on: push: paths: - - 'kubernetes/**' - - '.github/workflows/docker-image-ci.yml' + - "kubernetes/**" + - ".github/workflows/docker-image-ci.yml" pull_request: jobs: build: runs-on: ubuntu-latest steps: - - name: Check out Git repository - uses: actions/checkout@v2 - - - name: docker login - env: - DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }} - DOCKERHUB_PASS: ${{ secrets.DOCKERHUB_PASS }} - run: docker login -u $DOCKERHUB_USER -p $DOCKERHUB_PASS - - - name: Pull Image - nginx - run: docker pull yurak/nginx:v0.4.0 - - name: Build image - nginx - working-directory: ./kubernetes/nginx - run: docker build -t yurak/nginx:v0.4.0 . - - name: Push Image - nginx - run: docker push yurak/nginx:v0.4.0 + - name: Check out Git repository + uses: actions/checkout@v2 - - name: Pull Image - mysql - run: docker pull yurak/mysql:v0.4.0 - - name: Build image - mysql - working-directory: ./kubernetes/mysql - run: docker build -t yurak/mysql:v0.4.0 . - - name: Push Image - mysql - run: docker push yurak/mysql:v0.4.0 + - name: docker login + env: + DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }} + DOCKERHUB_PASS: ${{ secrets.DOCKERHUB_PASS }} + run: docker login -u $DOCKERHUB_USER -p $DOCKERHUB_PASS - - name: Pull Image - postgres - run: docker pull yurak/postgres:v0.4.0 - - name: Build image - postgres - working-directory: ./kubernetes/postgres - run: docker build -t yurak/postgres:v0.4.0 . - - name: Push Image - postgres - run: docker push yurak/postgres:v0.4.0 + - name: Build image - nginx + working-directory: ./kubernetes/nginx + run: docker build -t yurak/nginx:v0.4.0 . + - name: Push Image - nginx + run: docker push yurak/nginx:v0.4.0 - - name: Pull Image - mongodb - run: docker pull yurak/mongodb:v0.4.0 - - name: Build image - mongodb - working-directory: ./kubernetes/mongodb - run: docker build -t yurak/mongodb:v0.4.0 . - - name: Push Image - mongodb - run: docker push yurak/mongodb:v0.4.0 + - name: Build image - mysql + working-directory: ./kubernetes/mysql + run: docker build -t yurak/mysql:v0.4.0 . + - name: Push Image - mysql + run: docker push yurak/mysql:v0.4.0 - - name: Pull Image - rabbitmq - run: docker pull yurak/rabbitmq:v0.4.0 - - name: Build image - rabbitmq - working-directory: ./kubernetes/rabbitmq - run: docker build -t yurak/rabbitmq:v0.4.0 . - - name: Push Image - rabbitmq - run: docker push yurak/rabbitmq:v0.4.0 + - name: Build image - postgres + working-directory: ./kubernetes/postgres + run: docker build -t yurak/postgres:v0.4.0 . + - name: Push Image - postgres + run: docker push yurak/postgres:v0.4.0 - - name: Pull Image - hazelcast - run: docker pull yurak/hazelcast:v0.4.0 - - name: Build image - hazelcast - working-directory: ./kubernetes/hazelcast - run: docker build -t yurak/hazelcast:v0.4.0 . - - name: Push Image - hazelcast - run: docker push yurak/hazelcast:v0.4.0 + - name: Build image - mongodb + working-directory: ./kubernetes/mongodb + run: docker build -t yurak/mongodb:v0.4.0 . + - name: Push Image - mongodb + run: docker push yurak/mongodb:v0.4.0 - - name: Pull Image - jenkins - run: docker pull yurak/jenkins:v0.4.0 - - name: Build image - jenkins - working-directory: ./kubernetes/monitoring/jenkins - run: docker build -t yurak/jenkins:v0.4.0 . - - name: Push Image - jenkins - run: docker push yurak/jenkins:v0.4.0 + - name: Build image - rabbitmq + working-directory: ./kubernetes/rabbitmq + run: docker build -t yurak/rabbitmq:v0.4.0 . + - name: Push Image - rabbitmq + run: docker push yurak/rabbitmq:v0.4.0 - - name: Pull Image - ab - run: docker pull yurak/ab:v0.4.0 - - name: Build image - ab - working-directory: ./kubernetes/monitoring/test/ab - run: docker build -t yurak/ab:v0.4.0 . - - name: Push Image - ab - run: docker push yurak/ab:v0.4.0 + - name: Build image - hazelcast + working-directory: ./kubernetes/hazelcast + run: docker build -t yurak/hazelcast:v0.4.0 . + - name: Push Image - hazelcast + run: docker push yurak/hazelcast:v0.4.0 - - name: Pull Image - postmannewman - run: docker pull yurak/postmannewman:v0.4.0 - - name: Build image - postmannewman - working-directory: ./kubernetes/monitoring/test/postmannewman - run: docker build -t yurak/postmannewman:v0.4.0 . - - name: Push Image - postmannewman - run: docker push yurak/postmannewman:v0.4.0 + - name: Build image - jenkins + working-directory: ./kubernetes/monitoring/jenkins + run: docker build -t yurak/jenkins:v0.4.0 . + - name: Push Image - jenkins + run: docker push yurak/jenkins:v0.4.0 + + - name: Build image - ab + working-directory: ./kubernetes/monitoring/test/ab + run: docker build -t yurak/ab:v0.4.0 . + - name: Push Image - ab + run: docker push yurak/ab:v0.4.0 + + - name: Build image - postmannewman + working-directory: ./kubernetes/monitoring/test/postmannewman + run: docker build -t yurak/postmannewman:v0.4.0 . + - name: Push Image - postmannewman + run: docker push yurak/postmannewman:v0.4.0 diff --git a/.github/workflows/java-ci.yml b/.github/workflows/java-ci.yml index 86f21e42a..eafe3c515 100644 --- a/.github/workflows/java-ci.yml +++ b/.github/workflows/java-ci.yml @@ -65,8 +65,6 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: mvn -B package --settings ../.m2/settings.xml - - name: Pull Image - run: docker pull yurak/jaxrs-activemq-quarkus:v0.4.0 - name: Build Image working-directory: ./application/jaxrs-activemq-quarkus run: docker build -t yurak/jaxrs-activemq-quarkus:v0.4.0 -f src/main/docker/Dockerfile.jvm . @@ -105,8 +103,6 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: mvn -B package --settings ../.m2/settings.xml -Pnative - - name: Pull Image - run: docker pull yurak/consumer-activemq-quarkus:v0.4.0 - name: Build Image working-directory: ./application/consumer-activemq-quarkus run: docker build -t yurak/consumer-activemq-quarkus:v0.4.0 -f src/main/docker/Dockerfile.native . @@ -145,8 +141,6 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: mvn -B package --settings ../.m2/settings.xml - - name: Pull Image - run: docker pull yurak/consumer-hazelcast-quarkus:v0.4.0 - name: Build Image working-directory: ./application/consumer-hazelcast-quarkus run: docker build -t yurak/consumer-hazelcast-quarkus:v0.4.0 -f src/main/docker/Dockerfile.jvm . @@ -185,8 +179,6 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: mvn -B package --settings ../.m2/settings.xml -Pnative - - name: Pull Image - run: docker pull yurak/consumer-kafka-quarkus:v0.4.0 - name: Build Image working-directory: ./application/consumer-kafka-quarkus run: docker build -t yurak/consumer-kafka-quarkus:v0.4.0 -f src/main/docker/Dockerfile.native . @@ -225,8 +217,6 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: mvn -B package --settings ../.m2/settings.xml -Pnative - - name: Pull Image - run: docker pull yurak/scheduled-quarkus:v0.4.0 - name: Build Image working-directory: ./application/scheduled-quarkus run: docker build -t yurak/scheduled-quarkus:v0.4.0 -f src/main/docker/Dockerfile.native . @@ -265,8 +255,6 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: mvn -B package --settings ../.m2/settings.xml - - name: Pull Image - run: docker pull yurak/jaxrs-hazelcast-quarkus:v0.4.0 - name: Build Image working-directory: ./application/jaxrs-hazelcast-quarkus run: docker build -t yurak/jaxrs-hazelcast-quarkus:v0.4.0 -f src/main/docker/Dockerfile.jvm . @@ -305,8 +293,6 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: mvn -B package --settings ../.m2/settings.xml -Pnative - - name: Pull Image - run: docker pull yurak/jaxrs-kafka-quarkus:v0.4.0 - name: Build Image working-directory: ./application/jaxrs-kafka-quarkus run: docker build -t yurak/jaxrs-kafka-quarkus:v0.4.0 -f src/main/docker/Dockerfile.native . @@ -345,8 +331,6 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: mvn -B package --settings ../.m2/settings.xml - - name: Pull Image - run: docker pull yurak/jaxrs-memcached-quarkus:v0.4.0 - name: Build Image working-directory: ./application/jaxrs-memcached-quarkus run: docker build -t yurak/jaxrs-memcached-quarkus:v0.4.0 -f src/main/docker/Dockerfile.jvm . @@ -385,8 +369,6 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: mvn -B package --settings ../.m2/settings.xml - - name: Pull Image - run: docker pull yurak/jaxrs-mongodb-quarkus:v0.4.0 - name: Build Image working-directory: ./application/jaxrs-mongodb-quarkus run: docker build -t yurak/jaxrs-mongodb-quarkus:v0.4.0 -f src/main/docker/Dockerfile.jvm . @@ -425,8 +407,6 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: mvn -B package --settings ../.m2/settings.xml - - name: Pull Image - run: docker pull yurak/jaxrs-mysql-quarkus:v0.4.0 - name: Build Image working-directory: ./application/jaxrs-mysql-quarkus run: docker build -t yurak/jaxrs-mysql-quarkus:v0.4.0 -f src/main/docker/Dockerfile.jvm . @@ -465,8 +445,6 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: mvn -B package --settings ../.m2/settings.xml - - name: Pull Image - run: docker pull yurak/jaxrs-postgres-quarkus:v0.4.0 - name: Build Image working-directory: ./application/jaxrs-postgres-quarkus run: docker build -t yurak/jaxrs-postgres-quarkus:v0.4.0 -f src/main/docker/Dockerfile.jvm . @@ -505,8 +483,6 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: mvn -B package --settings ../.m2/settings.xml - - name: Pull Image - run: docker pull yurak/jaxrs-rabbitmq-quarkus:v0.4.0 - name: Build Image working-directory: ./application/jaxrs-rabbitmq-quarkus run: docker build -t yurak/jaxrs-rabbitmq-quarkus:v0.4.0 -f src/main/docker/Dockerfile.jvm . @@ -545,8 +521,6 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: mvn -B package --settings ../.m2/settings.xml - - name: Pull Image - run: docker pull yurak/jaxrs-redis-quarkus:v0.4.0 - name: Build Image working-directory: ./application/jaxrs-redis-quarkus run: docker build -t yurak/jaxrs-redis-quarkus:v0.4.0 -f src/main/docker/Dockerfile.jvm . @@ -585,8 +559,6 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: mvn -B package --settings ../.m2/settings.xml - - name: Pull Image - run: docker pull yurak/consumer-rabbitmq-quarkus:v0.4.0 - name: Build Image working-directory: ./application/consumer-rabbitmq-quarkus run: docker build -t yurak/consumer-rabbitmq-quarkus:v0.4.0 -f src/main/docker/Dockerfile.jvm . @@ -625,8 +597,6 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: mvn -B package --settings ../.m2/settings.xml -Pnative - - name: Pull Image - run: docker pull yurak/producer-kafka-quarkus:v0.4.0 - name: Build Image working-directory: ./application/producer-kafka-quarkus run: docker build -t yurak/producer-kafka-quarkus:v0.4.0 -f src/main/docker/Dockerfile.native . @@ -665,8 +635,6 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: mvn -B package --settings ../.m2/settings.xml -Pnative - - name: Pull Image - run: docker pull yurak/randompublish-quarkus:v0.4.0 - name: Build Image working-directory: ./application/randompublish-quarkus run: docker build -t yurak/randompublish-quarkus:v0.4.0 -f src/main/docker/Dockerfile.native . @@ -727,8 +695,6 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: mvn -B package --settings ../.m2/settings.xml - - name: Pull Image - run: docker pull yurak/consumer-redis-quarkus:v0.4.0 - name: Build Image working-directory: ./application/consumer-redis-quarkus run: docker build -t yurak/consumer-redis-quarkus:v0.4.0 -f src/main/docker/Dockerfile.jvm . @@ -770,8 +736,6 @@ jobs: with: source: "application/wlp-web-java-spring/target/spring.war" target: "kubernetes/wlp/spring.war" - - name: Pull Image - run: docker pull yurak/wlp:v0.4.0 - name: Build image working-directory: ./kubernetes/wlp run: docker build -t yurak/wlp:v0.4.0 .