Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

fix: get latest resource config before update #56

fix: get latest resource config before update

fix: get latest resource config before update #56

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
manifests:
name: Manifests up to date
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Hermit
run: ./bin/hermit env --raw >> $GITHUB_ENV
- name: Build & Check for changes
run: make diff-check
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Hermit
run: ./bin/hermit env --raw >> $GITHUB_ENV
- name: Tests
run: make test
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Hermit
run: ./bin/hermit env --raw >> $GITHUB_ENV
- name: Lint
run: golangci-lint run --timeout=5m
docker:
name: Docker
runs-on: ubuntu-latest
needs:
- test
- lint
- manifests
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Hermit
run: ./bin/hermit env --raw >> $GITHUB_ENV
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
context: ./
file: ./Dockerfile
push: false
tags: cashapp/cmmc:${{ github.sha }}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}