forked from zbycz/osmapp
-
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.
Merge pull request #1 from OpenPlaceGuide/amenk-patch-1
Create docker-image.yml
- Loading branch information
Showing
1 changed file
with
22 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,22 @@ | ||
name: Docker Image CI - for opg-pages | ||
|
||
on: | ||
push: | ||
branches: [ "opg-master" ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Login to Github Packages | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GHCR_PAT }} | ||
- name: Build the Docker image | ||
if: github.ref == 'refs/heads/opg-master' | ||
run: | | ||
docker build --build-arg PROXY_BACKEND=http://opg-pages/ . --file Dockerfile --tag ghcr.io/openplaceguide/osmapp:latest | ||
docker push ghcr.io/openplaceguide/osmapp:latest |