-
-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (52 loc) · 1.5 KB
/
deproxy-registry.yaml
File metadata and controls
58 lines (52 loc) · 1.5 KB
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
49
50
51
52
53
54
55
56
57
58
name: Build Deproxy Docker Image
on:
push:
tags:
- 'v*.*.*'
jobs:
build-docker:
runs-on: ubuntu-latest
env:
IMAGE_USERNAME: codiew
IMAGE_NAME: codiew/codenire-deproxy
WORKDIR: ./deproxy
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Docker meta
id: docker_meta
uses: docker/metadata-action@v5.6.1
with:
images: |
${{ env.IMAGE_NAME }}
tags: |
latest
type=sha
type=semver,pattern=v{{version}}
type=semver,pattern=v{{major}}.{{minor}}
type=semver,pattern=v{{major}}
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3.8.0
with:
install: true
- name: Log in to Docker Hub
uses: docker/login-action@v3.3.0
with:
username: ${{ env.IMAGE_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
id: build
uses: docker/build-push-action@v6
with:
context: ${{ env.WORKDIR}}
push: true
builder: ${{ steps.buildx.outputs.name }}
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha
build-args: |
GIT_VERSION=${{ env.GIT_VERSION }}
GIT_COMMIT=${{ github.sha }}
platforms: linux/amd64,linux/arm64/v8