-
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.
- Loading branch information
1 parent
31b5c34
commit 8fd5102
Showing
1 changed file
with
29 additions
and
29 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 |
---|---|---|
|
@@ -81,41 +81,41 @@ jobs: | |
path: target/release/mater-cli | ||
retention-days: 1 | ||
|
||
mater_cli_build_docker: | ||
runs-on: self-hosted | ||
|
||
needs: | ||
- mater_cli_check_version | ||
|
||
permissions: | ||
packages: write | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
|
||
- name: Login to Github Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build and publish image | ||
run: | | ||
docker build \ | ||
--build-arg VCS_REF="$(git rev-parse HEAD)" \ | ||
--build-arg BUILD_DATE="$(date -u +'%Y-%m-%dT%H:%M:%SZ')" \ | ||
--tag ghcr.io/eigerco/mater-cli:"${{ needs.mater_cli_check_version.outputs.package-version }}" \ | ||
--file ./docker/dockerfiles/mater-cli.Dockerfile \ | ||
. | ||
docker push ghcr.io/eigerco/mater-cli:"${{ needs.mater_cli_check_version.outputs.package-version }}" | ||
# mater_cli_build_docker: | ||
# runs-on: self-hosted | ||
|
||
# needs: | ||
# - mater_cli_check_version | ||
|
||
# permissions: | ||
# packages: write | ||
|
||
# steps: | ||
# - uses: actions/[email protected] | ||
|
||
# - name: Login to Github Container Registry | ||
# uses: docker/login-action@v3 | ||
# with: | ||
# registry: ghcr.io | ||
# username: ${{ github.actor }} | ||
# password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# - name: Build and publish image | ||
# run: | | ||
# docker build \ | ||
# --build-arg VCS_REF="$(git rev-parse HEAD)" \ | ||
# --build-arg BUILD_DATE="$(date -u +'%Y-%m-%dT%H:%M:%SZ')" \ | ||
# --tag ghcr.io/eigerco/mater-cli:"${{ needs.mater_cli_check_version.outputs.package-version }}" \ | ||
# --file ./docker/dockerfiles/mater-cli.Dockerfile \ | ||
# . | ||
# docker push ghcr.io/eigerco/mater-cli:"${{ needs.mater_cli_check_version.outputs.package-version }}" | ||
|
||
mater_cli_release: | ||
needs: | ||
- mater_cli_check_version | ||
- mater_cli_build_linux | ||
- mater_cli_build_macos | ||
- mater_cli_build_docker | ||
# - mater_cli_build_docker | ||
|
||
runs-on: ubuntu-latest | ||
|
||
|