release dev image on dockerhub #65
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: push v2-dev on dockerhub | |
| on: | |
| release: | |
| types: [ published ] | |
| push: | |
| branches: | |
| - release-v2-dev | |
| workflow_dispatch: | |
| inputs: | |
| tag: | |
| type: string | |
| description: "Image tag manually" | |
| adc_version: | |
| type: string | |
| default: dev | |
| description: "adc version" | |
| jobs: | |
| docker: | |
| runs-on: buildjet-2vcpu-ubuntu-2204 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.ref }} | |
| submodules: recursive | |
| - name: Setup Go Env | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: "1.22" | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Login to Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ${{ secrets.DOCKER_REGISTRY }} | |
| username: ${{ secrets.DOCKER_USERNAME }} | |
| password: ${{ secrets.DOCKER_PASSWORD }} | |
| - | |
| name: Build and push multi-arch image | |
| env: | |
| ARCH: amd64 | |
| ENABLE_PROXY: "false" | |
| BASE_IMAGE_TAG: "debug" | |
| TAG: ${{ github.event.inputs.tag || github.ref_name }}dev | |
| IMAGE_TAG: ${{ github.event.inputs.tag || github.ref_name }}dev | |
| ADC_VERSION: ${{ github.event.inputs.adc_version }} | |
| run: | | |
| echo "building images..." | |
| make docker-build | |
| make docker-push |