update workflow v2 #1
Workflow file for this run
This file contains 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: Tests | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- 'dev-testing' | ||
jobs: | ||
build-image: | ||
runs-on: ubuntu-latest | ||
needs: trigger-release | ||
if: needs.trigger-release.outputs.release_created | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
# ------------------------------------------------ | ||
# Setup Docker ad Qemu | ||
# ------------------------------------------------ | ||
- name: SetUp QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
- name: Set up Docker Buildx | ||
id: buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
- name: Build and push | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
file: ./Dockerfile | ||
platforms: linux/amd64,linux/arm64 | ||
push: true | ||
tags: > | ||
nuvladev/nuvlaedge-validation:${{ github.ref_name }}, | ||
nuvladev/nuvlaedge-validation:latest | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max |