Skip to content

Commit 4ecc7de

Browse files
committed
Move stable below devhack
to have default show up on https://github.com/devhack-seattle/trac-docker
1 parent 80f57d3 commit 4ecc7de

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

.github/workflows/docker-publish.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -83,48 +83,48 @@ jobs:
8383
cache-from: type=gha
8484
cache-to: type=gha,mode=max
8585

86-
# Build and push Docker image with Buildx (don't push on PR)
87-
# https://github.com/docker/build-push-action
88-
- name: Build and push stable Docker image
89-
id: build-and-push-stable
86+
87+
- name: Build and push 1.6 Docker image
88+
id: build-and-push-1_6
9089
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
9190
with:
9291
context: .
9392
push: ${{ github.event_name != 'pull_request' }}
9493
tags: |
95-
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:stable
96-
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
97-
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{steps.get_version.outputs.TRAC_VERSION}}
94+
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:next-stable-1.6.x
9895
build-args: |
99-
TRAC_INSTALL_URL=https://download.edgewall.org/trac/Trac-${{steps.get_version.outputs.TRAC_VERSION}}.tar.gz
96+
TRAC_INSTALL_URL=svn+https://svn.edgewall.org/repos/trac/branches/1.6-stable
10097
labels: ${{ steps.meta.outputs.labels }}
10198
cache-from: type=gha
10299
cache-to: type=gha,mode=max
103100

104-
- name: Build and push 1.6 Docker image
105-
id: build-and-push-1_6
101+
- name: Build and push /dev/hack Docker image
102+
id: build-and-push-devhack
106103
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
107104
with:
108105
context: .
109106
push: ${{ github.event_name != 'pull_request' }}
110107
tags: |
111-
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:next-stable-1.6.x
108+
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:devhack
112109
build-args: |
113-
TRAC_INSTALL_URL=svn+https://svn.edgewall.org/repos/trac/branches/1.6-stable
110+
TRAC_INSTALL_URL=git+https://github.com/devhack-seattle/trac.git
114111
labels: ${{ steps.meta.outputs.labels }}
115112
cache-from: type=gha
116113
cache-to: type=gha,mode=max
117114

118-
- name: Build and push /dev/hack Docker image
119-
id: build-and-push-devhack
115+
# It's important that this is the last one
116+
- name: Build and push stable Docker image
117+
id: build-and-push-stable
120118
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
121119
with:
122120
context: .
123121
push: ${{ github.event_name != 'pull_request' }}
124122
tags: |
125-
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:devhack
123+
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:stable
124+
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
125+
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{steps.get_version.outputs.TRAC_VERSION}}
126126
build-args: |
127-
TRAC_INSTALL_URL=git+https://github.com/devhack-seattle/trac.git
127+
TRAC_INSTALL_URL=https://download.edgewall.org/trac/Trac-${{steps.get_version.outputs.TRAC_VERSION}}.tar.gz
128128
labels: ${{ steps.meta.outputs.labels }}
129129
cache-from: type=gha
130130
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)