Skip to content

Commit

Permalink
delete pull image for tag deploy #125
Browse files Browse the repository at this point in the history
  • Loading branch information
yurake committed Jun 22, 2020
1 parent e33158f commit 89b3a77
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 110 deletions.
130 changes: 56 additions & 74 deletions .github/workflows/docker-image-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
36 changes: 0 additions & 36 deletions .github/workflows/java-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand Down Expand Up @@ -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 .
Expand Down Expand Up @@ -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 .
Expand Down Expand Up @@ -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 .
Expand Down Expand Up @@ -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 .
Expand Down Expand Up @@ -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 .
Expand Down Expand Up @@ -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 .
Expand Down Expand Up @@ -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 .
Expand Down Expand Up @@ -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 .
Expand Down Expand Up @@ -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 .
Expand Down Expand Up @@ -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 .
Expand Down Expand Up @@ -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 .
Expand Down Expand Up @@ -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 .
Expand Down Expand Up @@ -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 .
Expand Down Expand Up @@ -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 .
Expand Down Expand Up @@ -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 .
Expand Down Expand Up @@ -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 .
Expand Down Expand Up @@ -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 .
Expand Down

0 comments on commit 89b3a77

Please sign in to comment.