fix image build and push
@@ -13,27 +13,27 @@ jobs:
steps:
- uses: actions/checkout@master
- name: Set up QEMU
- uses: docker/setup-qemu-action@v1
+ uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
- uses: docker/setup-buildx-action@v1
+ uses: docker/setup-buildx-action@v2
- name: Login to Dockerhub
- uses: docker/login-action@v1
+ uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- - name: Publish aflpp ${{ github.ref }} to Registry
- uses: docker/build-push-action@v2
+ - 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 }}
- if: "${{ github.ref }}" == "dev"
- - name: Publish aflpp ${{ github.ref }} and latest to Registry
- uses: docker/build-push-action@v2
+ 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 }},aflplusplus/aflplusplus:latest
- if: "${{ github.ref }}" == "stable"
+ tags: aflplusplus/aflplusplus:${{ github.ref_name }},aflplusplus/aflplusplus:latest
+ if: ${{ github.ref_name == 'stable' }}
