Quellcode durchsuchen

Adding docker hub to push list (#271)

* adding docker hub to push list

* adding back arm builds to worker
Bret Fisher vor 2 Jahren
Ursprung
Commit
f0fb81f707

+ 1 - 4
.github/workflows/call-docker-build-result.yaml

@@ -52,7 +52,7 @@ jobs:
       ### defaults to:
       image-names: |
         ghcr.io/dockersamples/example-voting-app-result
-      # dockersamples/examplevotingapp_result
+        dockersamples/examplevotingapp_result
       
       ### REQUIRED set rules for tagging images, based on special action syntax:
       ### https://github.com/docker/metadata-action#tags-input
@@ -60,9 +60,6 @@ jobs:
       tag-rules: |
         type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }}
         type=ref,event=pr
-        type=ref,event=branch
-        type=semver,pattern={{version}}
-        type=raw,value=gha-${{ github.run_id }}
       
       ### path to where docker should copy files into image
       ### defaults to root of repository (.)

+ 4 - 7
.github/workflows/call-docker-build-vote.yaml

@@ -52,17 +52,14 @@ jobs:
       ### defaults to:
       image-names: |
         ghcr.io/dockersamples/example-voting-app-vote
-      # dockersamples/examplevotingapp_vote
+        dockersamples/examplevotingapp_vote
       
       ### REQUIRED set rules for tagging images, based on special action syntax:
       ### https://github.com/docker/metadata-action#tags-input
       ### defaults to:
-      # tag-rules: |
-      #   type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }}
-      #   type=ref,event=pr
-      #   type=ref,event=branch
-      #   type=semver,pattern={{version}}
-      #   type=raw,value=gha-${{ github.run_id }}
+      tag-rules: |
+        type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }}
+        type=ref,event=pr
       
       ### path to where docker should copy files into image
       ### defaults to root of repository (.)

+ 5 - 8
.github/workflows/call-docker-build-worker.yaml

@@ -52,17 +52,14 @@ jobs:
       ### defaults to:
       image-names: |
         ghcr.io/dockersamples/example-voting-app-worker
-      # dockersamples/examplevotingapp_worker
+        dockersamples/examplevotingapp_worker
       
       ### REQUIRED set rules for tagging images, based on special action syntax:
       ### https://github.com/docker/metadata-action#tags-input
       ### defaults to:
-      # tag-rules: |
-      #   type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }}
-      #   type=ref,event=pr
-      #   type=ref,event=branch
-      #   type=semver,pattern={{version}}
-      #   type=raw,value=gha-${{ github.run_id }}
+      tag-rules: |
+        type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }}
+        type=ref,event=pr
       
       ### path to where docker should copy files into image
       ### defaults to root of repository (.)
@@ -78,7 +75,7 @@ jobs:
       ### other options: linux/amd64,linux/arm64,linux/arm/v7
       # FIXME worker arm/v7 support doesn't build in .net core 3.1 with QEMU
       # a fix would likely run the .net build on amd64 but with a target of arm/v7
-      platforms: linux/amd64,linux/arm64
+      platforms: linux/amd64,linux/arm64,linux/arm/v7
       
       ### Create a PR comment with image tags and labels
       ### defaults to false