-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #98 from bedroge/autobuild_bootstrap_container
Automatically build and publish the container image for bootstrapping Gentoo Prefix
- Loading branch information
Showing
8 changed files
with
54 additions
and
66 deletions.
There are no files selected for viewing
52 changes: 52 additions & 0 deletions
52
.github/workflows/build-and-publish-bootstrap-container.yml
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,52 @@ | ||
name: Build and publish EESSI Docker image for bootstrapping Gentoo Prefix | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- Dockerfile.bootstrap-prefix-centos8 | ||
- bootstrap-prefix.sh | ||
|
||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- Dockerfile.bootstrap-prefix-centos8 | ||
- bootstrap-prefix.sh | ||
|
||
jobs: | ||
build_and_publish: | ||
name: Build and publish image | ||
runs-on: ubuntu-latest | ||
permissions: | ||
packages: write | ||
contents: read | ||
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Login to GitHub Container Registry | ||
if: github.event_name != 'pull_request' | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Convert and store repository owner in lowercase | ||
run: | | ||
echo "REPOSITORY_OWNER=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV | ||
- name: Build and push to GitHub Packages | ||
uses: docker/build-push-action@v2 | ||
with: | ||
tags: ghcr.io/${{ env.REPOSITORY_OWNER }}/bootstrap-prefix:centos8 | ||
file: Dockerfile.bootstrap-prefix-centos8 | ||
platforms: linux/amd64, linux/arm64, linux/ppc64le | ||
push: ${{ github.event_name != 'pull_request' }} |
2 changes: 1 addition & 1 deletion
2
Dockerfile.bootstrap-prefix-centos8-aarch64 → Dockerfile.bootstrap-prefix-centos8
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.