Skip to content

Commit

Permalink
move to the new ghcr.io registry and use GITHUB_TOKEN (#26)
Browse files Browse the repository at this point in the history
* move to the new ghcr.io registry and use GITHUB_TOKEN

* package read permissions
  • Loading branch information
charlesnicholson authored May 27, 2021
1 parent 91088ca commit 8edd91a
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/presubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,47 @@ name: Presubmit Checks
on:
pull_request:
branches: [ main ]

schedule:
- cron: '0 2 * * 0' # Weekly

jobs:
linux-gcc:
runs-on: ubuntu-latest

permissions:
packages: read

container:
image: docker.pkg.github.com/charlesnicholson/docker-images/docker-image:latest
image: ghcr.io/charlesnicholson/docker-image:latest
credentials:
username: charlesnicholson
password: ${{ secrets.PACKAGE_READ_TOKEN }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

strategy:
matrix:
architecture: [32, 64]

steps:
- uses: actions/checkout@v2
- name: Build
run: COBS_LINUXARCH=${{ matrix.architecture }} make -j

macos:
runs-on: macos-latest

steps:
- uses: actions/checkout@v2
- name: Build
run: make -j

win:
runs-on: windows-latest

strategy:
matrix:
architecture: [32, 64]

steps:
- uses: actions/checkout@v2
- name: Build
Expand Down

0 comments on commit 8edd91a

Please sign in to comment.