From 3833d734cd3764438b3dbd1079cb41122dcfc460 Mon Sep 17 00:00:00 2001 From: bb-ivo Date: Mon, 22 Apr 2024 11:38:35 +0200 Subject: [PATCH] attempt at secret --- .gitea/workflows/build-and-publish.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitea/workflows/build-and-publish.yaml b/.gitea/workflows/build-and-publish.yaml index ff95bbf..f0981a2 100644 --- a/.gitea/workflows/build-and-publish.yaml +++ b/.gitea/workflows/build-and-publish.yaml @@ -15,5 +15,11 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - name: Setup token file + run: | + echo "$TOKEN" > src/token.json + env: + TOKEN: ${{ secrets.TOKEN }} + - name: Build and push Docker image run: docker build -t 172.19.0.2:32768/frietlijst:$(git rev-parse --short HEAD) .