about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2022-06-18 08:58:49 +0200
committerGitHub <noreply@github.com>2022-06-18 08:58:49 +0200
commit47d4f161890ab9ea8fbcf2a26615061341a18bbd (patch)
tree0ed282246c77f2933deab8d35379807cc526689d
parenta96f9a349a437c876170939b1a1b123e1611998b (diff)
parent74f70d0c74b0ddd631ede19069106cd29f0c4aad (diff)
downloadafl++-47d4f161890ab9ea8fbcf2a26615061341a18bbd.tar.gz
Merge pull request #1442 from rhtenhove/more-tags
Push both stable and dev
-rw-r--r--.github/workflows/build_aflplusplus_docker.yaml19
1 files changed, 14 insertions, 5 deletions
diff --git a/.github/workflows/build_aflplusplus_docker.yaml b/.github/workflows/build_aflplusplus_docker.yaml
index fa96da8e..a26f31d2 100644
--- a/.github/workflows/build_aflplusplus_docker.yaml
+++ b/.github/workflows/build_aflplusplus_docker.yaml
@@ -2,9 +2,9 @@ name: Publish Docker Images
 
 on:
   push:
-    branches: [ stable ]
-#    paths:
-#    - Dockerfile
+    branches:
+    - stable
+    - dev
 
 jobs:
   push_to_registry:
@@ -21,10 +21,19 @@ jobs:
       with:
         username: ${{ secrets.DOCKER_USERNAME }}
         password: ${{ secrets.DOCKER_TOKEN }}
-    - name: Publish aflpp to Registry
+    - name: Publish aflpp ${{ github.ref }} to Registry
       uses: docker/build-push-action@v2
       with:
         context: .
         platforms: linux/amd64,linux/arm64
         push: true
-        tags: aflplusplus/aflplusplus:latest
+        tags: aflplusplus/aflplusplus:${{ github.ref }}
+      if: "${{ github.ref }}" == "dev"
+    - name: Publish aflpp ${{ github.ref }} and latest to Registry
+      uses: docker/build-push-action@v2
+      with:
+        context: .
+        platforms: linux/amd64,linux/arm64
+        push: true
+        tags: aflplusplus/aflplusplus:${{ github.ref }},aflplusplus/aflplusplus:latest
+      if: "${{ github.ref }}" == "stable"