Skip to content

Commit 7757910

Browse files
committed
AP-733 use org .github workflow templates
- uses .github/.github templates for build, merge, push, and release - which also adds support for multi-arch builds in the registry - bumps some github action versions - cleans up test job a bit - corrects bundle audit misname - adds a js:eslint step (which was not previously performed)
1 parent 95823df commit 7757910

1 file changed

Lines changed: 7 additions & 52 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -3,57 +3,12 @@ name: Push Release Tags
33
on:
44
push:
55
tags:
6-
- '**'
6+
- "**"
7+
workflow_call:
78
workflow_dispatch:
8-
9-
env:
10-
DOCKER_METADATA_SET_OUTPUT_ENV: 'true'
11-
129
jobs:
13-
retag:
14-
runs-on: ubuntu-latest
15-
steps:
16-
- name: Checkout code
17-
uses: actions/checkout@v4
18-
19-
- name: Set up Docker Buildx
20-
uses: docker/setup-buildx-action@v3
21-
22-
- name: Login to GitHub Container Registry
23-
uses: docker/login-action@v3
24-
with:
25-
registry: ghcr.io
26-
username: ${{ github.actor }}
27-
password: ${{ secrets.GITHUB_TOKEN }}
28-
29-
- name: Determine the sha-based image tag to retag
30-
id: get-base-image
31-
uses: docker/metadata-action@v5
32-
with:
33-
images: ghcr.io/${{ github.repository }}
34-
tags: type=sha
35-
36-
- name: Verify that the image was previously built
37-
env:
38-
BASE_IMAGE: ${{ steps.get-base-image.outputs.tags }}
39-
run: |
40-
docker pull "$BASE_IMAGE"
41-
42-
- name: Produce release tags
43-
id: tag-meta
44-
uses: docker/metadata-action@v5
45-
with:
46-
images: ghcr.io/${{ github.repository }}
47-
flavor: latest=false
48-
tags: |
49-
type=ref,event=tag
50-
type=semver,pattern={{major}}
51-
type=semver,pattern={{major}}.{{minor}}
52-
type=semver,pattern={{version}}
53-
54-
- name: Retag the pulled image
55-
env:
56-
BASE_IMAGE: ${{ steps.get-base-image.outputs.tags }}
57-
run: |
58-
echo "$DOCKER_METADATA_OUTPUT_TAGS" | tr ' ' '\n' | xargs -n1 docker tag "$BASE_IMAGE"
59-
docker push --all-tags "$(echo "$BASE_IMAGE" | cut -f1 -d:)"
10+
release:
11+
uses: BerkeleyLibrary/.github/.github/workflows/docker-release.yml@v2.0.0
12+
with:
13+
image: ghcr.io/${{ github.repository }}
14+
secrets: inherit

0 commit comments

Comments
 (0)