mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-17 12:18:08 +00:00
fix image build and push
This commit is contained in:
56
.github/workflows/build_aflplusplus_docker.yaml
vendored
56
.github/workflows/build_aflplusplus_docker.yaml
vendored
@ -3,37 +3,37 @@ name: Publish Docker Images
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- stable
|
- stable
|
||||||
- dev
|
- dev
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
push_to_registry:
|
push_to_registry:
|
||||||
name: Push Docker images to Dockerhub
|
name: Push Docker images to Dockerhub
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v1
|
uses: docker/setup-qemu-action@v2
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v2
|
||||||
- name: Login to Dockerhub
|
- name: Login to Dockerhub
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_TOKEN }}
|
password: ${{ secrets.DOCKER_TOKEN }}
|
||||||
- name: Publish aflpp ${{ github.ref }} to Registry
|
- name: Publish dev as dev to docker.io registry
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
push: true
|
push: true
|
||||||
tags: aflplusplus/aflplusplus:${{ github.ref }}
|
tags: aflplusplus/aflplusplus:${{ github.ref_name }}
|
||||||
if: "${{ github.ref }}" == "dev"
|
if: ${{ github.ref_name == 'dev' }}
|
||||||
- name: Publish aflpp ${{ github.ref }} and latest to Registry
|
- name: Publish stable as stable and latest to docker.io registry
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
push: true
|
push: true
|
||||||
tags: aflplusplus/aflplusplus:${{ github.ref }},aflplusplus/aflplusplus:latest
|
tags: aflplusplus/aflplusplus:${{ github.ref_name }},aflplusplus/aflplusplus:latest
|
||||||
if: "${{ github.ref }}" == "stable"
|
if: ${{ github.ref_name == 'stable' }}
|
||||||
|
Reference in New Issue
Block a user