-
Notifications
You must be signed in to change notification settings - Fork 6
48 lines (41 loc) · 1.13 KB
/
docker-publish.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
45
46
47
48
name: Docker
on:
push:
branches:
- main
# Run tests for any PRs.
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
couchbase-version:
- enterprise-6.6.6
- community-7.0.2
- enterprise-7.0.5
- community-7.1.1
- enterprise-7.1.6
- community-7.2.2
- enterprise-7.2.3
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: btburnett3
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
build-args: "COUCHBASE_TAG=${{ matrix.couchbase-version }}"
platforms: linux/amd64
push: ${{ github.event_name == 'push' }}
tags: "btburnett3/couchbasefakeit:${{ matrix.couchbase-version }}"
cache-from: type=gha
cache-to: type=gha,mode=max