Skip to content

Commit ddc2809

Browse files
authored
Merge pull request #1394 from o1-labs/dw/latest-main-docker
CI/docker: main branch push to latest
2 parents af72c03 + 7f8022c commit ddc2809

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/docker.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ jobs:
125125
# Push frontend multi-arch manifest
126126
push-frontend-image:
127127
runs-on: ubuntu-latest
128-
if: github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release')
128+
if: github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release')
129129
needs:
130130
- build-mina-frontend-image
131131
steps:
@@ -137,6 +137,9 @@ jobs:
137137
if [[ "${{ github.ref }}" == "refs/heads/develop" ]]; then
138138
echo "GIT_COMMIT=${GITHUB_SHA:0:8}" >> $GITHUB_ENV
139139
echo "ADDITIONAL_TAGS=develop" >> $GITHUB_ENV
140+
elif [[ "${{ github.ref }}" == "refs/heads/main" ]]; then
141+
echo "GIT_COMMIT=${GITHUB_SHA:0:8}" >> $GITHUB_ENV
142+
echo "ADDITIONAL_TAGS=latest" >> $GITHUB_ENV
140143
elif [[ "${{ github.ref }}" == refs/tags/* ]]; then
141144
echo "GIT_COMMIT=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
142145
echo "ADDITIONAL_TAGS=" >> $GITHUB_ENV
@@ -159,7 +162,7 @@ jobs:
159162
# Push node multi-arch manifest (after node build completes)
160163
push-node-image:
161164
runs-on: ubuntu-latest
162-
if: github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release')
165+
if: github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release')
163166
needs:
164167
- build-mina-node-image
165168
steps:
@@ -171,6 +174,9 @@ jobs:
171174
if [[ "${{ github.ref }}" == "refs/heads/develop" ]]; then
172175
echo "GIT_COMMIT=${GITHUB_SHA:0:8}" >> $GITHUB_ENV
173176
echo "ADDITIONAL_TAGS=develop" >> $GITHUB_ENV
177+
elif [[ "${{ github.ref }}" == "refs/heads/main" ]]; then
178+
echo "GIT_COMMIT=${GITHUB_SHA:0:8}" >> $GITHUB_ENV
179+
echo "ADDITIONAL_TAGS=latest" >> $GITHUB_ENV
174180
elif [[ "${{ github.ref }}" == refs/tags/* ]]; then
175181
echo "GIT_COMMIT=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
176182
echo "ADDITIONAL_TAGS=" >> $GITHUB_ENV

0 commit comments

Comments
 (0)