Skip to content

refactor:

refactor: #2

Workflow file for this run

#This workflow will build a docker image and push it to Docker Hub if a tag is present
name: ci
on:
pull_request:
branches:
- main
env: #we need to set the tag to the latest tag
LATEST_TAG: uniride1/uniride_bdd_test:latest
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU #For emulation of arm64 on amd64
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ env.LATEST_TAG }}