Skip to content

Update CODEOWNERS

Update CODEOWNERS #99

Workflow file for this run

name: Continuous
on:
push:
branches:
- master
permissions:
contents: read
id-token: write
packages: write
jobs:
all:
runs-on: macos-11
env:
AWS_REGION: ${{ secrets.AWS_REGION }}
GO111MODULE: 'off'
HOMEBREW_GITHUB_API_TOKEN: ${{ github.token }}
PACKER_GITHUB_API_TOKEN: ${{ github.token }}
PACKER_LOG: '1'
VAGRANT_LOG: debug
steps:
- name: checkout repository
uses: actions/checkout@v2
- name: setup go
uses: actions/setup-go@v2
with:
go-version: '1.17'
- name: build and install tgzarmorer
run: go get -f -u -v -x github.com/inloco/xcode/tgzarmorer
- name: install unttify
run: cp ./hack/unttify.py /usr/local/bin/unttify
- name: install and setup casks
run: |
brew install --cask packages homebrew/cask-versions/vmware-fusion12
sh ./hack/kickstart-vmware.sh '${{ secrets.VMWARE_FUSION_SERIAL_NUMBER }}'
- name: install and setup formulae
run: |
brew install --formula packer parallel skopeo
sh ./hack/cite-parallel.sh
sh ./hack/unttify-skopeo.sh
- name: purge frameworks
run: sudo ./hack/purge-frameworks.sh
- name: make all
shell: '/usr/bin/env parallel --lb --retries 3 :::: {0}'
run: make
- name: aws configure
uses: aws-actions/configure-aws-credentials@v1
with:
aws-region: ${{ secrets.AWS_REGION }}
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT }}:role/ecr-public
- name: docker login
run: |
skopeo login -u '${{ secrets.DOCKERHUB_USER }}' -p '${{ secrets.DOCKERHUB_PASS }}' docker.io
skopeo login -u '${{ secrets.QUAY_USER }}' -p '${{ secrets.QUAY_PASS }}' quay.io
skopeo login -u '${{ github.actor }}' -p '${{ github.token }}' ghcr.io
skopeo login -u 'AWS' -p "$(aws ecr-public get-login-password)" public.ecr.aws
- name: docker push
shell: '/usr/bin/env parallel --lb --retries 3 :::: {0}'
run: |
make 'IMAGE_REGISTRY=docker.io' 'IMAGE_REPOSITORY=inloco/macbox' -C oci push
make 'IMAGE_REGISTRY=quay.io' 'IMAGE_REPOSITORY=inloco/macbox' -C oci push
make 'IMAGE_REGISTRY=ghcr.io' 'IMAGE_REPOSITORY=${{ github.repository }}' -C oci push
make 'IMAGE_REGISTRY=public.ecr.aws' 'IMAGE_REPOSITORY=incognia/macbox' -C oci push
- name: docker tag
run: |
make 'IMAGE_REGISTRY=docker.io' 'IMAGE_REPOSITORY=inloco/macbox' -C oci latest
make 'IMAGE_REGISTRY=quay.io' 'IMAGE_REPOSITORY=inloco/macbox' -C oci latest
make 'IMAGE_REGISTRY=ghcr.io' 'IMAGE_REPOSITORY=${{ github.repository }}' -C oci latest
make 'IMAGE_REGISTRY=public.ecr.aws' 'IMAGE_REPOSITORY=incognia/macbox' -C oci latest