-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI Build and Push & Container Upgrades (#26)
Adds docker build and push image to CI pipeline Docker Image Upgrades - Adds ksh, bash-completion, ripgrep - Updates nodejs installation method - Updates git - Fixes git-lfs installation - Adds graphite-cli
- Loading branch information
Showing
6 changed files
with
79 additions
and
3,558 deletions.
There are no files selected for viewing
This file contains 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 file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Build and Push Docker Image | ||
|
||
on: | ||
push: | ||
branches: ['main'] | ||
pull_request: | ||
|
||
env: | ||
DOCKER_IMAGE_NAME: ghcr.io/staflsystems/stafl-devcontainer-ci | ||
|
||
jobs: | ||
push_to_registry: | ||
name: Build and Push Docker Image | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Determine Version | ||
if: github.ref == 'refs/heads/main' | ||
id: staflversion | ||
uses: StaflSystems/CustomGithubActions/DetermineVersion@main | ||
|
||
- name: Display Version | ||
if: github.ref == 'refs/heads/main' | ||
run: | | ||
echo "Version: ${{steps.staflversion.outputs.full}}" | ||
- name: Build Docker image | ||
if: github.ref != 'refs/heads/main' | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: ${{ github.workspace }}/stafl-devcontainer | ||
push: false | ||
tags: ghcr.io/staflsystems/stafl-devcontainer-ci | ||
|
||
- name: Build and Push Docker image | ||
if: github.ref == 'refs/heads/main' | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: ${{ github.workspace }}/stafl-devcontainer | ||
push: true | ||
tags: | | ||
${{ env.DOCKER_IMAGE_NAME }}:latest | ||
${{ env.DOCKER_IMAGE_NAME }}:${{ steps.staflversion.outputs.major }}.${{ steps.staflversion.outputs.minor }}.${{ steps.staflversion.outputs.patch }}-${{ steps.staflversion.outputs.build }} | ||
- name: Create a GitHub release (main) | ||
if: github.ref == 'refs/heads/main' | ||
uses: StaflSystems/release-action@main | ||
with: | ||
tag: ${{ steps.staflversion.outputs.full }} | ||
commit: ${{ github.sha }} |
This file contains 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
Oops, something went wrong.