Skip to content

try to repo list

try to repo list #12

Workflow file for this run

name: CI
on:
push:
branches:
- main
- release-*
- debug_publish
pull_request: {}
workflow_dispatch: {}
env:
# Common versions
GO_VERSION: '1.19'
GOLANGCI_VERSION: 'v1.50.0'
DOCKER_BUILDX_VERSION: 'v0.8.2'
# Common users. We can't run a step 'if secrets.XXX != ""' but we can run a
# step 'if env.XXX != ""', so we copy these to succinctly test whether
# credentials have been provided before trying to run steps that need them.
UPBOUND_MARKETPLACE_PUSH_ROBOT_USR: ${{ secrets.UPBOUND_MARKETPLACE_PUSH_ROBOT_USR }}
jobs:
publish-artifacts:
runs-on: ubuntu-22.04
steps:
#- name: Setup QEMU
# uses: docker/setup-qemu-action@2b82ce82d56a2a04d2637cd93a637ae1b359c0a7 # v2
# with:
# platforms: all
#
#- name: Setup Docker Buildx
# uses: docker/setup-buildx-action@v2
# with:
# version: ${{ env.DOCKER_BUILDX_VERSION }}
# install: true
- name: Login to Upbound
uses: docker/login-action@v1
if: env.UPBOUND_MARKETPLACE_PUSH_ROBOT_USR != ''
with:
registry: xpkg.upbound.io
username: ${{ secrets.UPBOUND_MARKETPLACE_PUSH_ROBOT_USR }}
password: ${{ secrets.UPBOUND_MARKETPLACE_PUSH_ROBOT_PSW }}
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 #v3
with:
submodules: true
- name: Fetch History
run: git fetch --prune --unshallow
- run: make build.init
- run: .cache/tools/linux_x86_64/up-v0.18.0 --help
- run: .cache/tools/linux_x86_64/up-v0.18.0 repo list
#- name: Setup Go
# uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3
# with:
# go-version: ${{ env.GO_VERSION }}
#
#- name: Find the Go Build Cache
# id: go
# run: echo "cache=$(make go.cachedir)" >> $GITHUB_OUTPUT
#
#- name: Cache the Go Build Cache
# uses: actions/cache@v3
# with:
# path: ${{ steps.go.outputs.cache }}
# key: ${{ runner.os }}-build-publish-artifacts-${{ hashFiles('**/go.sum') }}
# restore-keys: ${{ runner.os }}-build-publish-artifacts-
#
#- name: Cache Go Dependencies
# uses: actions/cache@v3
# with:
# path: .work/pkg
# key: ${{ runner.os }}-pkg-${{ hashFiles('**/go.sum') }}
# restore-keys: ${{ runner.os }}-pkg-
#
#- name: Vendor Dependencies
# run: make vendor vendor.check
#
#- name: Build Artifacts
# run: make -j2 build.all
# env:
# # We're using docker buildx, which doesn't actually load the images it
# # builds by default. Specifying --load does so.
# BUILD_ARGS: "--load"
#
#- name: Upload Artifacts to GitHub
# uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 #v3
# with:
# name: output
# path: _output/**
#
#- run: up repo list
#
#- name: Publish Artifacts
# run: make publish BRANCH_NAME=${GITHUB_REF##*/}