Skip to content

Commit

Permalink
Mat inn GITHUB_PAT slik at dev-kontainere kan laste ned pakker fra gi…
Browse files Browse the repository at this point in the history
…thub (#104)

Sender inn organisasjonshemmeligheten GH_TOKEN, som er en token uten
rettigheter. GH_TOKEN ble samtidig oppdatert.
  • Loading branch information
arnfinn authored Oct 10, 2024
1 parent 2313cfd commit 3392890
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 20 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,7 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}
build-args: |
GITHUB_PAT=${{ secrets.GH_TOKEN }}
cache-from: type=gha
cache-to: type=gha,mode=max
4 changes: 2 additions & 2 deletions ablanor-dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ FROM rapporteket/dev:weekly

LABEL maintainer="Arnfinn Hykkerud Steindal <[email protected]>"

ARG GH_PAT
ENV GITHUB_PAT=${GH_PAT}
ARG GITHUB_PAT
ENV GITHUB_PAT=${GITHUB_PAT}

COPY --chown=rstudio:rstudio db.yml /home/rstudio/
RUN cat /home/rstudio/db.yml >> /home/rstudio/dbConfig.yml \
Expand Down
4 changes: 2 additions & 2 deletions code-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ FROM codercom/code-server:4.21.1

WORKDIR /home/coder

ARG GH_PAT
ENV GITHUB_PAT=${GH_PAT}
ARG GITHUB_PAT
ENV GITHUB_PAT=${GITHUB_PAT}

USER root

Expand Down
4 changes: 2 additions & 2 deletions deformitet-dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ FROM rapporteket/dev:weekly

LABEL maintainer "Kevin Thon <[email protected]>"

Check warning on line 3 in deformitet-dev/Dockerfile

View workflow job for this annotation

GitHub Actions / deformitet-dev

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "LABEL key=value" should be used instead of legacy "LABEL key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 3 in deformitet-dev/Dockerfile

View workflow job for this annotation

GitHub Actions / deformitet-dev

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "LABEL key=value" should be used instead of legacy "LABEL key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 3 in deformitet-dev/Dockerfile

View workflow job for this annotation

GitHub Actions / deformitet-dev

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "LABEL key=value" should be used instead of legacy "LABEL key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

ARG GH_PAT
ENV GITHUB_PAT=${GH_PAT}
ARG GITHUB_PAT
ENV GITHUB_PAT=${GITHUB_PAT}

# add registry dev config and R pkg dependencies
COPY --chown=rstudio:rstudio db.yml /home/rstudio/rap_config/
Expand Down
4 changes: 2 additions & 2 deletions muskel-dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ FROM rapporteket/dev:weekly

LABEL maintainer="Kevin Thon <[email protected]>"

ARG GH_PAT
ENV GITHUB_PAT=${GH_PAT}
ARG GITHUB_PAT
ENV GITHUB_PAT=${GITHUB_PAT}

# add registry dev config and R pkg dependencies
COPY --chown=rstudio:rstudio db.yml /home/rstudio/rap_config/
Expand Down
4 changes: 2 additions & 2 deletions nnrr-dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ FROM rapporteket/dev:weekly

LABEL maintainer = "Kevin Thon <[email protected]>"

Check warning on line 3 in nnrr-dev/Dockerfile

View workflow job for this annotation

GitHub Actions / nnrr-dev

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "LABEL key=value" should be used instead of legacy "LABEL key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 3 in nnrr-dev/Dockerfile

View workflow job for this annotation

GitHub Actions / nnrr-dev

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "LABEL key=value" should be used instead of legacy "LABEL key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 3 in nnrr-dev/Dockerfile

View workflow job for this annotation

GitHub Actions / nnrr-dev

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "LABEL key=value" should be used instead of legacy "LABEL key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

ARG GH_PAT
ENV GITHUB_PAT=${GH_PAT}
ARG GITHUB_PAT
ENV GITHUB_PAT=${GITHUB_PAT}

# add registry dev config and R pkg dependencies
COPY --chown=rstudio:rstudio db.yml /home/rstudio/rap_config/
Expand Down
4 changes: 2 additions & 2 deletions norgast-dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ FROM rapporteket/dev:weekly

LABEL maintainer "Kevin Thon <[email protected]>"

Check warning on line 3 in norgast-dev/Dockerfile

View workflow job for this annotation

GitHub Actions / norgast-dev

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "LABEL key=value" should be used instead of legacy "LABEL key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 3 in norgast-dev/Dockerfile

View workflow job for this annotation

GitHub Actions / norgast-dev

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "LABEL key=value" should be used instead of legacy "LABEL key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 3 in norgast-dev/Dockerfile

View workflow job for this annotation

GitHub Actions / norgast-dev

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "LABEL key=value" should be used instead of legacy "LABEL key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

ARG GH_PAT
ENV GITHUB_PAT=${GH_PAT}
ARG GITHUB_PAT
ENV GITHUB_PAT=${GITHUB_PAT}

# add registry dev config and R pkg dependencies
COPY --chown=rstudio:rstudio db.yml /home/rstudio/rap_config/
Expand Down
4 changes: 2 additions & 2 deletions norspis-dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ FROM rapporteket/dev:weekly

LABEL maintainer="Kevin Thon <[email protected]>"

ARG GH_PAT
ENV GITHUB_PAT=${GH_PAT}
ARG GITHUB_PAT
ENV GITHUB_PAT=${GITHUB_PAT}

# add registry dev config and R pkg dependencies
COPY --chown=rstudio:rstudio db.yml /home/rstudio/rap_config/
Expand Down
4 changes: 2 additions & 2 deletions nra-dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ FROM rapporteket/dev:weekly

LABEL maintainer = "Kevin Thon <[email protected]>"

Check warning on line 3 in nra-dev/Dockerfile

View workflow job for this annotation

GitHub Actions / nra-dev

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "LABEL key=value" should be used instead of legacy "LABEL key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 3 in nra-dev/Dockerfile

View workflow job for this annotation

GitHub Actions / nra-dev

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "LABEL key=value" should be used instead of legacy "LABEL key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 3 in nra-dev/Dockerfile

View workflow job for this annotation

GitHub Actions / nra-dev

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "LABEL key=value" should be used instead of legacy "LABEL key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

ARG GH_PAT
ENV GITHUB_PAT=${GH_PAT}
ARG GITHUB_PAT
ENV GITHUB_PAT=${GITHUB_PAT}

# add registry dev config and R pkg dependencies
COPY --chown=rstudio:rstudio db.yml /home/rstudio/rap_config/
Expand Down
4 changes: 2 additions & 2 deletions pilot-dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ FROM rapporteket/dev:weekly

LABEL maintainer="Arnfinn Hykkerud Steindal <[email protected]>"

ARG GH_PAT
ENV GITHUB_PAT=${GH_PAT}
ARG GITHUB_PAT
ENV GITHUB_PAT=${GITHUB_PAT}

RUN R -e "remotes::install_github(c('Rapporteket/rapbase', 'Rapporteket/rapFigurer', \
'Rapporteket/pilot'))"
4 changes: 2 additions & 2 deletions rapregtemplate-dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ FROM rapporteket/dev:weekly

LABEL maintainer="Arnfinn Hykkerud Steindal <[email protected]>"

ARG GH_PAT
ENV GITHUB_PAT=${GH_PAT}
ARG GITHUB_PAT
ENV GITHUB_PAT=${GITHUB_PAT}

# add registry dev config and R pkg dependencies
COPY --chown=rstudio:rstudio db.yml /home/rstudio/rap_config/
Expand Down

0 comments on commit 3392890

Please sign in to comment.