about summary refs log tree commit diff
path: root/.github/workflows
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2022-06-18 21:48:10 +0200
committerGitHub <noreply@github.com>2022-06-18 21:48:10 +0200
commit5d5d1f70fc31c3bb4abef3a28014cb2fa8d84cc0 (patch)
tree5ca8a83bf8fa747b7a5a45fdf8c8f0617d536baa /.github/workflows
parent605f2bf96936efd6c5193d106a32fcf893c26b56 (diff)
parent85b1ce00a8c2c955f33d412d2f288807fe9b4d3e (diff)
downloadafl++-5d5d1f70fc31c3bb4abef3a28014cb2fa8d84cc0.tar.gz
Merge pull request #1447 from rhtenhove/more-tags
fixes github actions
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build_aflplusplus_docker.yaml66
1 files changed, 38 insertions, 28 deletions
diff --git a/.github/workflows/build_aflplusplus_docker.yaml b/.github/workflows/build_aflplusplus_docker.yaml
index a26f31d2..7245a84e 100644
--- a/.github/workflows/build_aflplusplus_docker.yaml
+++ b/.github/workflows/build_aflplusplus_docker.yaml
@@ -3,37 +3,47 @@ name: Publish Docker Images
 on:
   push:
     branches:
-    - stable
-    - dev
+      - stable
+      - dev
+    tags:
+      - '*'
 
 jobs:
   push_to_registry:
     name: Push Docker images to Dockerhub
     runs-on: ubuntu-latest
     steps:
-    - uses: actions/checkout@master
-    - name: Set up QEMU
-      uses: docker/setup-qemu-action@v1
-    - name: Set up Docker Buildx
-      uses: docker/setup-buildx-action@v1
-    - name: Login to Dockerhub
-      uses: docker/login-action@v1
-      with:
-        username: ${{ secrets.DOCKER_USERNAME }}
-        password: ${{ secrets.DOCKER_TOKEN }}
-    - 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:${{ 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"
+      - uses: actions/checkout@master
+      - name: Set up QEMU
+        uses: docker/setup-qemu-action@v2
+      - name: Set up Docker Buildx
+        uses: docker/setup-buildx-action@v2
+      - name: Login to Dockerhub
+        uses: docker/login-action@v2
+        with:
+          username: ${{ secrets.DOCKER_USERNAME }}
+          password: ${{ secrets.DOCKER_TOKEN }}
+      - name: Publish dev as dev to docker.io registry
+        uses: docker/build-push-action@v3
+        with:
+          context: .
+          platforms: linux/amd64,linux/arm64
+          push: true
+          tags: aflplusplus/aflplusplus:${{ github.ref_name }}
+        if: ${{ github.ref_name == 'dev' }}
+      - name: Publish stable as stable and latest to docker.io registry
+        uses: docker/build-push-action@v3
+        with:
+          context: .
+          platforms: linux/amd64,linux/arm64
+          push: true
+          tags: aflplusplus/aflplusplus:${{ github.ref_name }},aflplusplus/aflplusplus:latest
+        if: ${{ github.ref_name == 'stable' }}
+      - name: Publish tagged release to docker.io registry
+        uses: docker/build-push-action@v3
+        with:
+          context: .
+          platforms: linux/amd64,linux/arm64
+          push: true
+          tags: aflplusplus/aflplusplus:${{ github.ref_name }}
+        if: ${{ github.ref_type == 'tag' }}