Skip to content

Do not login locally #53

Do not login locally

Do not login locally #53

Workflow file for this run

name: Docker Images
on:
workflow_dispatch:
push:
branches:
- main
- feature/*
jobs:
version:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.version.outputs.version }}
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Latest Version
id: version
run: |
. ./.github/bin/reg-tags/image_api.sh
_releases() {
# Ask GH for the list of releases matching the tag pattern, then fool the sort
# -V option to properly understand semantic versioning. Arrange for latest
# version to be at the top. See: https://stackoverflow.com/a/40391207
github_releases -r 'v?[0-9]+\.[0-9]+\.[0-9]+' "$1" |
sed '/-/!{s/$/_/}' |
sort -Vr |
sed 's/_$//'
}
version=$(_releases cloudflare/cloudflared | head -n 1)
printf "version=%s\n" "$version" >> "$GITHUB_OUTPUT"
# When pushing to the main branch, we (re)generate images, tagged with
# "latest"
ghcr:
uses: ./.github/workflows/_build.yml

Check failure on line 40 in .github/workflows/docker.yml

View workflow run for this annotation

GitHub Actions / Docker Images

Invalid workflow file

The workflow is not valid. In .github/workflows/docker.yml (Line: 40, Col: 11): Error from called workflow efrecon/sshd-cloudflared/.github/workflows/_build.yml@12d08d03f9db0a2c2ce594db9fe8882809094699: (Line: 44, Col: 13, Idx: 987) - (Line: 44, Col: 14, Idx: 988): While parsing a tag, did not find expected tag URI.
with:
registry: ghcr.io
platforms: linux/amd64,linux/arm64,linux/i386
secrets:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
if: github.ref_name == 'main'
needs: version
# When pushing to feature branches, we test stuff on the platform of the
# runner only, using a local registry so as to be able to push and pull to
# Docker from the builder steps.
build:
uses: ./.github/workflows/_build.yml
with:
registry: localhost:5000
platforms: linux/amd64
if: github.ref_name != 'main'
needs: version