Skip to content

Commit

Permalink
Update docker-build-and-push.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieupelatan authored Dec 13, 2023
1 parent 09a3c43 commit 876f1de
Showing 1 changed file with 54 additions and 54 deletions.
108 changes: 54 additions & 54 deletions .github/workflows/docker-build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,24 @@ jobs:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get commit id
id: vars
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
run: echo "name=sha_short::$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-business-partner-mock
- name: Build Docker image
uses: docker/build-push-action@v2.10.0
uses: docker/build-push-action@v5
with:
context: .
file: ./code/easyfranchise/deployment/docker/Dockerfile-business-partner-mock
Expand All @@ -53,24 +53,24 @@ jobs:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get commit id
id: vars
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
run: echo "name=sha_short::$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-broker
- name: Build Docker image
uses: docker/build-push-action@v2.10.0
uses: docker/build-push-action@v5
with:
context: .
file: ./code/easyfranchise/deployment/docker/Dockerfile-broker
Expand All @@ -87,24 +87,24 @@ jobs:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get commit id
id: vars
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
run: echo "name=sha_short::$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-approuter
- name: Build Docker image
uses: docker/build-push-action@v2.10.0
uses: docker/build-push-action@v3
with:
context: .
file: ./code/easyfranchise/deployment/docker/Dockerfile-approuter
Expand All @@ -121,24 +121,24 @@ jobs:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get commit id
id: vars
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
run: echo "name=sha_short::$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-bp-service
- name: Build Docker image
uses: docker/build-push-action@v2.10.0
uses: docker/build-push-action@v5
with:
context: .
file: ./code/easyfranchise/deployment/docker/Dockerfile-bp-service
Expand All @@ -155,24 +155,24 @@ jobs:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get commit id
id: vars
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
run: echo "name=sha_short::$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-db-service
- name: Build Docker image
uses: docker/build-push-action@v2.10.0
uses: docker/build-push-action@v5
with:
context: .
file: ./code/easyfranchise/deployment/docker/Dockerfile-db-service
Expand All @@ -189,24 +189,24 @@ jobs:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get commit id
id: vars
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
run: echo "name=sha_short::$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-ef-service
- name: Build Docker image
uses: docker/build-push-action@v2.10.0
uses: docker/build-push-action@v5
with:
context: .
file: ./code/easyfranchise/deployment/docker/Dockerfile-ef-service
Expand All @@ -223,24 +223,24 @@ jobs:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get commit id
id: vars
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
run: echo "name=sha_short::$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-email-service
- name: Build Docker image
uses: docker/build-push-action@v2.10.0
uses: docker/build-push-action@v5
with:
context: .
file: ./code/easyfranchise/deployment/docker/Dockerfile-email-service
Expand All @@ -257,24 +257,24 @@ jobs:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get commit id
id: vars
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
run: echo "name=sha_short::$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-ui
- name: Build Docker image
uses: docker/build-push-action@v2.10.0
uses: docker/build-push-action@v5
with:
context: .
file: ./code/easyfranchise/deployment/docker/Dockerfile-ui
Expand All @@ -291,24 +291,24 @@ jobs:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get commit id
id: vars
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
run: echo "name=sha_short::$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-day2-approuter
- name: Build Docker image
uses: docker/build-push-action@v2.10.0
uses: docker/build-push-action@v5
with:
context: .
file: ./code/day2-operations/deployment/docker/Dockerfile-day2-approuter
Expand All @@ -325,24 +325,24 @@ jobs:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get commit id
id: vars
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
run: echo "name=sha_short::$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-day2-ui
- name: Build Docker image
uses: docker/build-push-action@v2.10.0
uses: docker/build-push-action@v5
with:
context: .
file: ./code/day2-operations/deployment/docker/Dockerfile-day2-ui
Expand All @@ -359,19 +359,19 @@ jobs:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get commit id
id: vars
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
run: echo "name=sha_short::$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-day2-service
- name: Run build script
Expand Down

0 comments on commit 876f1de

Please sign in to comment.