Skip to content

ci: update pipeline #36

ci: update pipeline

ci: update pipeline #36

Workflow file for this run

name: ci
on:
push:
branches:
- master
env:
APP_NAME: waifuland_fe
APP_VERSION: latest
APP_DEV_VERSION: unstable
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push - ARM64 - PROD
if: github.ref == 'refs/heads/master'
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.APP_NAME }}:ARM64_${{ env.APP_VERSION }}
platforms: linux/arm64
- name: Build and push - AMD64 - PROD
if: github.ref == 'refs/heads/master'
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.APP_NAME }}:AMD64_${{ env.APP_VERSION }}
platforms: linux/amd64