Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

docs: fix RTD build error #274

docs: fix RTD build error

docs: fix RTD build error #274

Workflow file for this run

name: Build image on commit to master
on:
push:
branches:
- master
pull_request:
branches:
- master
types: [ labeled, unlabeled, opened, synchronize, reopened ]
jobs:
publish:
runs-on: ubuntu-latest
env:
GOPATH: /home/runner/work/applicationset
steps:
- uses: actions/setup-go@v1
with:
go-version: '1.17.6'
- uses: actions/checkout@master
with:
path: src/applicationset
# Build the image
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1
- run: |
IMAGE_PLATFORMS=linux/amd64
if [[ "${{ github.event_name }}" == "push" || "${{ contains(github.event.pull_request.labels.*.name, 'test-arm-image') }}" == "true" ]]
then
IMAGE_PLATFORMS=linux/amd64,linux/arm64
fi
echo "Building image for platforms: $IMAGE_PLATFORMS"
make image DOCKER_PUSH=false CONTAINER_REGISTRY=quay.io IMAGE_NAMESPACE=argoproj IMAGE_TAG=latest IMAGE_PLATFORMS=${IMAGE_PLATFORMS}
working-directory: ./src/applicationset
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
# Publish the image
- run: |
docker login quay.io --username $USERNAME --password $PASSWORD
docker push quay.io/argoproj/argocd-applicationset:latest
if: github.event_name == 'push'
env:
USERNAME: ${{ secrets.USERNAME }}
PASSWORD: ${{ secrets.TOKEN }}