moving banana clone right above the build #7
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: "Docker Image Builder" | |
on: | |
- push | |
env: | |
PERSONNAL_ACCESS_TOKEN: "${{ secrets.PERSONNAL_ACCESS_TOKEN }}" | |
DOCKERHUB_USERNAME: "${{ secrets.DOCKERHUB_USERNAME }}" | |
DOCKERHUB_TOKEN: "${{ secrets.DOCKERHUB_TOKEN }}" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v4.1.4 | |
- name: "Set up QEMU" | |
uses: docker/setup-qemu-action@v3 | |
- name: "Set up Docker Buildx" | |
uses: docker/setup-buildx-action@v3 | |
with: | |
platforms: linux/arm64 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: "${{ env.DOCKERHUB_USERNAME }}" | |
password: "${{ env.DOCKERHUB_TOKEN }}" | |
- name: "Get banana profile" | |
run: | | |
git clone https://${{ env.PERSONNAL_ACCESS_TOKEN }}@github.com/Epitech/banana-coding-style-checker | |
mv banana-coding-style-checker/vera . | |
rm -rf banana-coding-style-checker | |
- name: Build and push | |
uses: docker/build-push-action@v5 | |
with: | |
push: true | |
platforms: linux/arm64 | |
tags: ximaz/epitech-coding-style-aarch64:latest | |
cache-from: | | |
type=local,src=vera | |
cache-to: | | |
type=local,dest=/vera |