Return IP address for zero replicas (#521) #834
This file contains hidden or 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: Container Images | |
| on: | |
| push: | |
| branches: | |
| - '*' | |
| tags: | |
| - v* | |
| jobs: | |
| helm-oci: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: azure/setup-helm@v4.3.0 | |
| - name: Push artifacts | |
| run: PUSH=true hack/push-artifacts.sh ghcr.io/stackitcloud/yawol/yawol-controller | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| env: | |
| FORCE_COLOR: 1 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Put back the git branch into git (Earthly uses it for tagging) | |
| run: | | |
| branch="" | |
| if [ -n "$GITHUB_HEAD_REF" ]; then | |
| branch="$GITHUB_HEAD_REF" | |
| else | |
| branch="${GITHUB_REF##*/}" | |
| fi | |
| git checkout -b "$branch" || true | |
| # the login action doesn't work with earthly | |
| - name: Docker login | |
| run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io --username "${{ github.actor }}" --password-stdin | |
| - name: Install earthly | |
| run: "sudo /bin/sh -c 'wget https://github.com/earthly/earthly/releases/download/v0.8.15/earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly'" | |
| - name: Earthly version | |
| run: earthly --version | |
| - name: Run build | |
| run: earthly --ci --push +ci |