-
Notifications
You must be signed in to change notification settings - Fork 48
44 lines (41 loc) · 1.4 KB
/
cd.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# This workflow will build docker images and publish to docker hub
# For more information see: https://github.com/marketplace/actions/build-and-push-docker-images
name: CD
on:
push:
tags:
- 'v*.*.*'
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set output
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push extension module
id: docker_build_extension
uses: docker/build-push-action@v5
with:
context: ./extension
file: ./extension/Dockerfile
push: true
tags: commercetools/commercetools-adyen-integration-extension:${{ steps.vars.outputs.tag }}
- name: Build and push notification module
id: docker_build_notification
uses: docker/build-push-action@v5
with:
context: ./notification
file: ./notification/Dockerfile
push: true
tags: commercetools/commercetools-adyen-integration-notification:${{ steps.vars.outputs.tag }}