Skip to content

Commit

Permalink
Push image to registry
Browse files Browse the repository at this point in the history
  • Loading branch information
amenk authored Jun 2, 2024
1 parent 78e031f commit 30947ca
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,20 @@ name: Docker Image CI - for opg-pages
on:
push:
branches: [ "opg-master" ]
pull_request:
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
run: docker build --build-arg PROXY_BACKEND=http://opg-pages/ . --file Dockerfile --tag osmapp:$(date +%s)
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

0 comments on commit 30947ca

Please sign in to comment.