diff --git a/.github/workflows/image.yaml b/.github/workflows/image.yaml index 0c09684..9aa7a7e 100644 --- a/.github/workflows/image.yaml +++ b/.github/workflows/image.yaml @@ -19,14 +19,14 @@ jobs: KO_DOCKER_REPO: ghcr.io/xdavidwu/kube-cgi steps: - uses: actions/checkout@v4 + - name: prepare + run: | + echo https://dl-cdn.alpinelinux.org/alpine/edge/testing/ >> /etc/apk/repositories + apk add ko go tar - uses: actions/cache@v4 with: path: ~/go/pkg key: go-pkg - - name: prepare - run: | - echo https://dl-cdn.alpinelinux.org/alpine/edge/testing/ >> /etc/apk/repositories - apk add ko go - name: login run: ko login ghcr.io -u dummy -p "${{ github.token }}" - name: package diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 41bf918..116401c 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -6,11 +6,11 @@ jobs: container: alpine:edge steps: - uses: actions/checkout@v4 + - name: prepare + run: apk add make bash go tar - uses: actions/cache@v4 with: path: ~/go/pkg key: go-pkg - - name: prepare - run: apk add make bash go - name: test run: make test