Skip to content

Commit

Permalink
Update docker-publish.yml
Browse files Browse the repository at this point in the history
use var in case of fork
  • Loading branch information
Mandrak-Kimigo authored Jun 7, 2024
1 parent 854c40c commit 4152fee
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
matrix:
include:
- dockerfile: ./camap-ts.Dockerfile
image: ghcr.io/CAMAP-APP/camap-ts
image: ghcr.io/${{ github.repository_owner }}/camap-ts
- dockerfile: ./mysql.Dockerfile
image: ghcr.io/CAMAP-APP/mysql
image: ghcr.io/${{ github.repository_owner }}/mysql
permissions:
contents: read
packages: write
Expand All @@ -37,13 +37,13 @@ jobs:
uses: actions/checkout@v4

- name: Get camap-ts.Dockerfile from camap-docker
run: curl https://raw.githubusercontent.com/CAMAP-APP/camap-docker/main/camap-ts.Dockerfile | sed 's!camap-ts/!./!g' > camap-ts.Dockerfile
run: curl https://raw.githubusercontent.com/${{ github.repository_owner }}/camap-docker/main/camap-ts.Dockerfile | sed 's!camap-ts/!./!g' > camap-ts.Dockerfile

- name: Get .env from camap-docker
run: curl https://raw.githubusercontent.com/CAMAP-APP/camap-docker/main/.env > .env
run: curl https://raw.githubusercontent.com/${{ github.repository_owner }}/camap-docker/main/.env > .env

- name: Get mysql.Dockerfile from camap-docker
run: curl https://raw.githubusercontent.com/CAMAP-APP/camap-docker/main/mysql.Dockerfile | sed 's!camap-ts/!!g' > mysql.Dockerfile
run: curl https://raw.githubusercontent.com/${{ github.repository_owner }}/camap-docker/main/mysql.Dockerfile | sed 's!camap-ts/!!g' > mysql.Dockerfile

# Install the cosign tool except on PR
# https://github.com/sigstore/cosign-installer
Expand Down

0 comments on commit 4152fee

Please sign in to comment.