Skip to content

Commit

Permalink
Merge pull request #106 from gliderlabs/cleanup-ci
Browse files Browse the repository at this point in the history
tests: update env to ubuntu-22.04 and cleanup workflow file
  • Loading branch information
josegonzalez authored May 19, 2024
2 parents 0a67f5a + ef3ebac commit 5ca9bd4
Showing 1 changed file with 25 additions and 27 deletions.
52 changes: 25 additions & 27 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,41 +4,39 @@ name: CI
on:
pull_request:
branches:
- '*'
- "*"
push:
branches:
- 'master'
- 'release'
- "main"
- "release"

jobs:
build:
name: build
runs-on: ubuntu-20.04
strategy:
fail-fast: true
runs-on: ubuntu-22.04
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }}

steps:
- uses: actions/checkout@v2
- name: make version
run: |
make version .env.docker
- run: make ci-report
- run: make build-docker-image
- run: make build-in-docker
- run: make validate-in-docker
- name: upload packages
uses: actions/upload-artifact@v2
with:
name: build
path: build/**/*
- name: make release-in-docker
run: |
if [[ "${GITHUB_REF#refs/heads/}" == "release" ]]; then
export CI_BRANCH=${GITHUB_REF#refs/heads/}
export PACKAGECLOUD_REPOSITORY=dokku/dokku
rm .env.docker
make .env.docker release-in-docker release-packagecloud-in-docker
fi
- uses: actions/checkout@v2
- name: make version
run: |
make version .env.docker
- run: make ci-report
- run: make build-docker-image
- run: make build-in-docker
- run: make validate-in-docker
- name: upload packages
uses: actions/upload-artifact@v2
with:
name: build
path: build/**/*
- name: make release-in-docker
run: |
if [[ "${GITHUB_REF#refs/heads/}" == "release" ]]; then
export CI_BRANCH=${GITHUB_REF#refs/heads/}
export PACKAGECLOUD_REPOSITORY=dokku/dokku
rm .env.docker
make .env.docker release-in-docker release-packagecloud-in-docker
fi

0 comments on commit 5ca9bd4

Please sign in to comment.