From 4fdd1129f01cc6936f0f79668cdd52e77650718a Mon Sep 17 00:00:00 2001 From: Ruben ten Hove Date: Fri, 17 Jun 2022 21:21:34 +0200 Subject: feat: push both dev and stable --- .github/workflows/build_aflplusplus_docker.yaml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/build_aflplusplus_docker.yaml b/.github/workflows/build_aflplusplus_docker.yaml index fa96da8e..b3f82453 100644 --- a/.github/workflows/build_aflplusplus_docker.yaml +++ b/.github/workflows/build_aflplusplus_docker.yaml @@ -2,7 +2,9 @@ name: Publish Docker Images on: push: - branches: [ stable ] + branches: + - stable + - dev # paths: # - Dockerfile @@ -21,10 +23,18 @@ 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:${{ github.ref }} + - name: Publish aflpp dev as latest to Registry uses: docker/build-push-action@v2 with: context: . platforms: linux/amd64,linux/arm64 push: true tags: aflplusplus/aflplusplus:latest + if: "${{ github.ref }}" == "dev" -- cgit 1.4.1 From be79ee70722fc185e6ce651c2071c72016c15792 Mon Sep 17 00:00:00 2001 From: Ruben ten Hove Date: Sat, 18 Jun 2022 02:52:57 +0200 Subject: stable==latest --- .github/workflows/build_aflplusplus_docker.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/build_aflplusplus_docker.yaml b/.github/workflows/build_aflplusplus_docker.yaml index b3f82453..ff7bc4da 100644 --- a/.github/workflows/build_aflplusplus_docker.yaml +++ b/.github/workflows/build_aflplusplus_docker.yaml @@ -5,8 +5,6 @@ on: branches: - stable - dev -# paths: -# - Dockerfile jobs: push_to_registry: @@ -30,11 +28,12 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: aflplusplus/aflplusplus:${{ github.ref }} + if: "${{ github.ref }}" == "dev" - name: Publish aflpp dev as latest to Registry uses: docker/build-push-action@v2 with: context: . platforms: linux/amd64,linux/arm64 push: true - tags: aflplusplus/aflplusplus:latest - if: "${{ github.ref }}" == "dev" + tags: aflplusplus/aflplusplus:${{ github.ref }},aflplusplus/aflplusplus:latest + if: "${{ github.ref }}" == "stable" -- cgit 1.4.1 From 74f70d0c74b0ddd631ede19069106cd29f0c4aad Mon Sep 17 00:00:00 2001 From: Ruben ten Hove Date: Sat, 18 Jun 2022 02:55:27 +0200 Subject: update name --- .github/workflows/build_aflplusplus_docker.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github/workflows') diff --git a/.github/workflows/build_aflplusplus_docker.yaml b/.github/workflows/build_aflplusplus_docker.yaml index ff7bc4da..a26f31d2 100644 --- a/.github/workflows/build_aflplusplus_docker.yaml +++ b/.github/workflows/build_aflplusplus_docker.yaml @@ -29,7 +29,7 @@ jobs: push: true tags: aflplusplus/aflplusplus:${{ github.ref }} if: "${{ github.ref }}" == "dev" - - name: Publish aflpp dev as latest to Registry + - name: Publish aflpp ${{ github.ref }} and latest to Registry uses: docker/build-push-action@v2 with: context: . -- cgit 1.4.1 From f23cac854aab2f7eb2ecb01e574571f00a0437fd Mon Sep 17 00:00:00 2001 From: Ruben ten Hove Date: Sat, 18 Jun 2022 08:03:58 -0400 Subject: fix image build and push --- .github/workflows/build_aflplusplus_docker.yaml | 56 ++++++++++++------------- 1 file changed, 28 insertions(+), 28 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/build_aflplusplus_docker.yaml b/.github/workflows/build_aflplusplus_docker.yaml index a26f31d2..9ff8312a 100644 --- a/.github/workflows/build_aflplusplus_docker.yaml +++ b/.github/workflows/build_aflplusplus_docker.yaml @@ -3,37 +3,37 @@ name: Publish Docker Images on: push: branches: - - stable - - dev + - stable + - dev 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' }} -- cgit 1.4.1 From 51a88b17b318768b95442a74358f056768146d57 Mon Sep 17 00:00:00 2001 From: Ruben ten Hove Date: Sat, 18 Jun 2022 08:31:37 -0400 Subject: add tagged releases --- .github/workflows/build_aflplusplus_docker.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to '.github/workflows') diff --git a/.github/workflows/build_aflplusplus_docker.yaml b/.github/workflows/build_aflplusplus_docker.yaml index 9ff8312a..7245a84e 100644 --- a/.github/workflows/build_aflplusplus_docker.yaml +++ b/.github/workflows/build_aflplusplus_docker.yaml @@ -5,6 +5,8 @@ on: branches: - stable - dev + tags: + - '*' jobs: push_to_registry: @@ -37,3 +39,11 @@ jobs: 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' }} -- cgit 1.4.1 From eb37cec76ebf5d61bde96ff2993d3df3ef97f607 Mon Sep 17 00:00:00 2001 From: Joe Rozner Date: Sun, 19 Jun 2022 11:42:31 -0700 Subject: Update workflows to ubuntu 22.04 22.04 is the most recent LTS release and the official docker container is running on it. It probably makes sense to run the unit tests on that as well. --- .github/workflows/ci.yml | 2 +- .github/workflows/rust_custom_mutator.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 886148df..799b72e7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: runs-on: '${{ matrix.os }}' strategy: matrix: - os: [ubuntu-20.04, ubuntu-18.04] + os: [ubuntu-22.04, ubuntu-20.04, ubuntu-18.04] env: AFL_SKIP_CPUFREQ: 1 AFL_I_DONT_CARE_ABOUT_MISSING_CRASHES: 1 diff --git a/.github/workflows/rust_custom_mutator.yml b/.github/workflows/rust_custom_mutator.yml index de2b184a..c279439e 100644 --- a/.github/workflows/rust_custom_mutator.yml +++ b/.github/workflows/rust_custom_mutator.yml @@ -15,7 +15,7 @@ jobs: working-directory: custom_mutators/rust strategy: matrix: - os: [ubuntu-20.04] + os: [ubuntu-22.04, ubuntu-20.04] steps: - uses: actions/checkout@v2 - name: Install Rust Toolchain -- cgit 1.4.1