Skip to content

Commit 1aaacc3

Browse files
committed
Attempt #2 to fix issue where latest build isn't tagged properly
Signed-off-by: Elijah Zupancic <[email protected]>
1 parent cdbd7f5 commit 1aaacc3

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,10 @@ jobs:
4444
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login docker.pkg.github.com -u $GITHUB_ACTOR --password-stdin
4545
- name: Install dependencies
4646
run: sudo apt-get install -y wait-for-it
47+
48+
# Run tests and builds image
4749
- name: Run tests - latest njs version
4850
run: ./test.sh --latest-njs --type oss
49-
- name: Run tests - stable njs version
50-
run: ./test.sh --type oss
51-
- name: Run tests - stable njs version - unprivileged process
52-
run: ./test.sh --unprivileged --type oss
5351
# latest-njs-oss image push [Github]
5452
- name: Tag container image for Push to github [latest-njs-oss date]
5553
run: docker tag nginx-s3-gateway:latest-njs-oss docker.pkg.github.com/$GITHUB_REPOSITORY/nginx-oss-s3-gateway:latest-njs-oss-${{ steps.date.outputs.date }}
@@ -59,6 +57,10 @@ jobs:
5957
run: docker push docker.pkg.github.com/$GITHUB_REPOSITORY/nginx-oss-s3-gateway:latest-njs-oss-${{ steps.date.outputs.date }}
6058
- name: Push container image to github [latest-njs-oss]
6159
run: docker push docker.pkg.github.com/$GITHUB_REPOSITORY/nginx-oss-s3-gateway:latest-njs-oss
60+
61+
# Run tests and builds image
62+
- name: Run tests - stable njs version - unprivileged process
63+
run: ./test.sh --unprivileged --type oss
6264
# unprivileged-oss image push [Github]
6365
- name: Tag container image for Push to github [unprivileged-oss date]
6466
run: docker tag nginx-s3-gateway:unprivileged-oss docker.pkg.github.com/$GITHUB_REPOSITORY/nginx-oss-s3-gateway:unprivileged-oss-${{ steps.date.outputs.date }}
@@ -68,11 +70,15 @@ jobs:
6870
run: docker push docker.pkg.github.com/$GITHUB_REPOSITORY/nginx-oss-s3-gateway:unprivileged-oss-${{ steps.date.outputs.date }}
6971
- name: Push container image to github [unprivileged-oss]
7072
run: docker push docker.pkg.github.com/$GITHUB_REPOSITORY/nginx-oss-s3-gateway:unprivileged-oss
73+
74+
# Run tests and builds image
75+
- name: Run tests - stable njs version
76+
run: ./test.sh --type oss
7177
# oss image push [Github]
7278
- name: Tag container image for Push to github [oss date]
73-
run: docker tag nginx-s3-gateway:latest docker.pkg.github.com/$GITHUB_REPOSITORY/nginx-oss-s3-gateway:latest-${{ steps.date.outputs.date }}
79+
run: docker tag nginx-s3-gateway:oss docker.pkg.github.com/$GITHUB_REPOSITORY/nginx-oss-s3-gateway:latest-${{ steps.date.outputs.date }}
7480
- name: Tag container image for Push to github [oss]
75-
run: docker tag nginx-s3-gateway:latest docker.pkg.github.com/$GITHUB_REPOSITORY/nginx-oss-s3-gateway:latest
81+
run: docker tag nginx-s3-gateway:oss docker.pkg.github.com/$GITHUB_REPOSITORY/nginx-oss-s3-gateway:latest
7682
- name: Push container image to github [oss date]
7783
run: docker push docker.pkg.github.com/$GITHUB_REPOSITORY/nginx-oss-s3-gateway:latest-${{ steps.date.outputs.date }}
7884
- name: Push container image to github [oss latest]

0 commit comments

Comments
 (0)