forked from nilsnolde/docker-valhalla
-
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.
let's a manual build option to mirror upstream's new manual build
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Builds a new image from Valhalla's "manually_triggered_build" image | ||
|
||
name: manual image build | ||
on: | ||
workflow_dispatch | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Log in to GitHub Docker Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build latest image | ||
run: | | ||
sed -i "s/:latest/:manually_triggered_build/g" Dockerfile | ||
docker build -t ghcr.io/${{ github.repository }}/valhalla:manually_triggered_build . | ||
docker push ghcr.io/${{ github.repository }}/valhalla:manually_triggered_build |