Update README.md #109
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This workflow will build a golang project | |
| # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go | |
| name: Go | |
| on: | |
| push: | |
| branches: [ "main", "hackathon2024" ] | |
| pull_request: | |
| branches: [ "main", "hackathon2024" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: '1.20' | |
| - name: Build | |
| run: make all | |
| - name: Upload a Build Artifact | |
| uses: actions/[email protected] | |
| with: | |
| name: aztui # optional, default is artifact | |
| path: bin/aztui | |
| - name: Build RPM image | |
| run: | | |
| docker build -t aztui-rpm -f images/Dockerfile.package . | |
| - name: Copy rpm file from Docker image | |
| run: | | |
| CONTAINER_ID=$(docker create aztui-rpm) | |
| docker cp $CONTAINER_ID:/workdir/rpmbuild/RPMS bin/RPMS | |
| docker rm -f $CONTAINER_ID | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: mariner-rpm | |
| path: bin/RPMS |