-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dependabot/go_modules/github.com/opencontain…
…ers/runc-1.1.12
- Loading branch information
Showing
9 changed files
with
140 additions
and
64 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,19 @@ permissions: | |
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
os: ["ubuntu-22.04", "depot-ubuntu-22.04-arm"] | ||
include: | ||
- os: ubuntu-22.04 | ||
arch: linux/amd64 | ||
sha: cfce811006a27305071b1634ca8fe690392f5dcc205612e7b4e5bde411b7701e | ||
arch-suffix: amd64 | ||
- os: depot-ubuntu-22.04-arm | ||
arch: linux/arm64 | ||
sha: 4b475e7e7eed79708b2707a67d556a5d3c0bdaef0a1f341311d095d1b4b3e271 | ||
arch-suffix: arm64 | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Docker Login | ||
uses: docker/login-action@v2 | ||
|
@@ -64,15 +76,52 @@ jobs: | |
git config --global user.name "Coder CI" | ||
- name: Build Image | ||
run: make -j build/image/envbox | ||
run: make -j ARCH=${{ matrix.arch }} SYSBOX_SHA=${{ matrix.sha }} build/image/envbox | ||
|
||
- name: Tag Image | ||
run: docker tag envbox ghcr.io/coder/envbox:${{ github.event.inputs.version }} | ||
run: docker tag envbox ghcr.io/coder/envbox:${{ github.event.inputs.version }}-${{ matrix.arch-suffix }} | ||
|
||
- name: Push Image | ||
run: docker push ghcr.io/coder/envbox:${{ github.event.inputs.version }}-${{ matrix.arch-suffix }} | ||
manifest: | ||
runs-on: ubuntu-22.04 | ||
needs: release | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.event.inputs.commit }} | ||
- name: Docker Login | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Create Manifest | ||
run: | | ||
docker manifest create ghcr.io/coder/envbox:${{ github.event.inputs.version }} \ | ||
--amend ghcr.io/coder/envbox:${{ github.event.inputs.version }}-amd64 \ | ||
--amend ghcr.io/coder/envbox:${{ github.event.inputs.version }}-arm64 | ||
- name: Push Manifest | ||
run: docker manifest push ghcr.io/coder/envbox:${{ github.event.inputs.version }} | ||
|
||
tag: | ||
runs-on: ubuntu-22.04 | ||
needs: manifest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.event.inputs.commit }} | ||
- name: Setup Git | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Coder CI" | ||
- name: Tag and Push Commit | ||
run: | | ||
git tag -a ${{ github.event.inputs.version }} -m ${{ github.event.inputs.version }} | ||
git push --tags | ||
- name: Push Image | ||
run: docker push ghcr.io/coder/envbox:${{ github.event.inputs.version }} | ||
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
deb [signed-by=/usr/share/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu focal stable | ||
deb [signed-by=/usr/share/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu jammy stable |
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
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.