Skip to content

Commit 750f4fb

Browse files
committed
feat: add alias tags for latest and java
1 parent b949d9c commit 750f4fb

File tree

2 files changed

+36
-2
lines changed

2 files changed

+36
-2
lines changed

.github/workflows/base.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ jobs:
4242

4343
- run: docker buildx prune -af
4444

45-
- uses: docker/build-push-action@v6
45+
- if: ${{ matrix.base != 'debian' }}
46+
uses: docker/build-push-action@v6
4647
with:
4748
context: .
4849
file: ./base/${{ matrix.base }}/Dockerfile
@@ -55,6 +56,22 @@ jobs:
5556
provenance: mode=max
5657
sbom: true
5758

59+
- if: ${{ matrix.base == 'debian' }}
60+
uses: docker/build-push-action@v6
61+
with:
62+
context: .
63+
file: ./base/${{ matrix.base }}/Dockerfile
64+
platforms: linux/amd64,linux/arm64/v8
65+
push: true
66+
pull: true
67+
tags: |
68+
cubecoders/ampbase:${{ matrix.base }}
69+
cubecoders/ampbase:latest
70+
cache-from: type=gha,scope=${{ github.workflow }}-${{ matrix.base }}
71+
cache-to: type=gha,mode=max,scope=${{ github.workflow }}-${{ matrix.base }}
72+
provenance: mode=max
73+
sbom: true
74+
5875
concurrency:
5976
group: ${{ github.workflow }}-${{ github.ref }}
6077
cancel-in-progress: false

.github/workflows/java.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ jobs:
6464

6565
- run: docker buildx prune -af
6666

67-
- uses: docker/build-push-action@v6
67+
- if: ${{ matrix.java != 'lts' }}
68+
uses: docker/build-push-action@v6
6869
with:
6970
context: .
7071
file: ./java/${{ matrix.java }}/Dockerfile
@@ -77,6 +78,22 @@ jobs:
7778
provenance: mode=max
7879
sbom: true
7980

81+
- if: ${{ matrix.java == 'lts' }}
82+
uses: docker/build-push-action@v6
83+
with:
84+
context: .
85+
file: ./java/${{ matrix.java }}/Dockerfile
86+
platforms: linux/amd64,linux/arm64/v8
87+
push: true
88+
pull: true
89+
tags: |
90+
cubecoders/ampbase:java-${{ matrix.java }}
91+
cubecoders/ampbase:java
92+
cache-from: type=gha,scope=${{ github.workflow }}-${{ matrix.java }}
93+
cache-to: type=gha,mode=max,scope=${{ github.workflow }}-${{ matrix.java }}
94+
provenance: mode=max
95+
sbom: true
96+
8097
concurrency:
8198
group: ${{ github.workflow }}-${{ github.ref }}
8299
cancel-in-progress: false

0 commit comments

Comments
 (0)