Skip to content

Commit

Permalink
Merge pull request #302 from OpenHistoricalMap/ghcr
Browse files Browse the repository at this point in the history
Using GitHub contianer registry to store docker images
  • Loading branch information
Rub21 authored May 8, 2024
2 parents d71a076 + f0fe32a commit e7b66c7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/chartpress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,32 @@ on:
branches:
- 'main'
- 'staging'
- 'ghcr'
jobs:
build:
runs-on: ubuntu-20.04
timeout-minutes: 120
steps:
- uses: actions/checkout@v1
- name: Login to DockerHub
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_GITHUB_TOKEN }}
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: '3.7'

- name: Setup git
run: git config --global user.email "[email protected]" && git config --global user.name "Github Action"

- name: Install Chartpress
run: |
pip install chartpress six ruamel.yaml
- name: Run Chartpress
run: chartpress --push
env:
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }}

GITHUB_TOKEN: ${{ secrets.GHCR_GITHUB_TOKEN }}
- name: Staging - substitute secrets
if: github.ref == 'refs/heads/staging'
uses: bluwy/substitute-string-action@v1
Expand Down
3 changes: 1 addition & 2 deletions chartpress.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
charts:
- name: ohm
imagePrefix: openhistoricalmap/

imagePrefix: ghcr.io/openhistoricalmap/
images:
web:
valuesPath: osm-seed.web.image
Expand Down

0 comments on commit e7b66c7

Please sign in to comment.