|
@@ -6,6 +6,7 @@ on:
|
|
|
env:
|
|
|
DOCKER_META_IMAGES: |
|
|
|
darthsim/imgproxy
|
|
|
+ ghcr.io/imgproxy/imgproxy
|
|
|
DOCKER_META_TAGS: |
|
|
|
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/master' }}
|
|
|
type=ref,event=branch,enable=${{ startsWith(github.ref, 'refs/heads/test/') }}
|
|
@@ -27,6 +28,9 @@ jobs:
|
|
|
runs-on:
|
|
|
- codebuild-imgproxy-${{ github.run_id }}-${{ github.run_attempt }}
|
|
|
- image:${{ matrix.build.image }}
|
|
|
+ permissions:
|
|
|
+ contents: read
|
|
|
+ packages: write
|
|
|
steps:
|
|
|
- name: Checkout
|
|
|
uses: actions/checkout@v4
|
|
@@ -47,6 +51,13 @@ jobs:
|
|
|
username: ${{ vars.DOCKERHUB_USERNAME }}
|
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
|
|
+ - name: Login to GitHub Container Registry
|
|
|
+ uses: docker/login-action@v3
|
|
|
+ with:
|
|
|
+ registry: ghcr.io
|
|
|
+ username: ${{ github.actor }}
|
|
|
+ password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
+
|
|
|
- name: Set up Docker Buildx
|
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
|
@@ -64,6 +75,9 @@ jobs:
|
|
|
push_manifests:
|
|
|
needs: build
|
|
|
runs-on: ubuntu-latest
|
|
|
+ permissions:
|
|
|
+ contents: read
|
|
|
+ packages: write
|
|
|
steps:
|
|
|
- name: Docker meta
|
|
|
id: meta
|
|
@@ -80,6 +94,13 @@ jobs:
|
|
|
username: ${{ vars.DOCKERHUB_USERNAME }}
|
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
|
|
+ - name: Login to GitHub Container Registry
|
|
|
+ uses: docker/login-action@v3
|
|
|
+ with:
|
|
|
+ registry: ghcr.io
|
|
|
+ username: ${{ github.actor }}
|
|
|
+ password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
+
|
|
|
- name: Push manifests
|
|
|
run: |
|
|
|
for tag in ${{ join(fromJSON(steps.meta.outputs.json).tags, ' ') }}
|