Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
fix: error with base64 -b (MAC) use -w, speed up integration test- wi…
Browse files Browse the repository at this point in the history
…th simple Dockerfile
  • Loading branch information
ybelMekk committed Jun 16, 2022
1 parent 233d964 commit 871091f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/nais-salsa-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types: [completed]
branches: [main]
env:
IMAGE: ttl.sh/nais/salsa-test:1h
IMAGE: ttl.sh/nais/salsa-integration-test:1h
jobs:
on-failure:
runs-on: ubuntu-20.04
Expand All @@ -30,6 +30,7 @@ jobs:
- name: Build and push
uses: docker/build-push-action@e551b19e49efd4e98792db7592c17c09b89db8d8 # ratchet:docker/build-push-action@v3
with:
context: integration-test
push: true
tags: ${{ env.IMAGE }}
# Added to a workflow
Expand Down
6 changes: 3 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ setup() {
exit 1
fi

GITHUB=$(echo "${INPUT_GITHUB_CONTEXT}" | base64 -b 0) &&
RUNNER=$(echo "${INPUT_RUNNER_CONTEXT}" | base64 -b 0) &&
ENVS=$(jq -n env | base64 -b 0)
GITHUB=$(echo "${INPUT_GITHUB_CONTEXT}" | base64 -w 0) &&
RUNNER=$(echo "${INPUT_RUNNER_CONTEXT}" | base64 -w 0) &&
ENVS=$(jq -n env | base64 -w 0)

DOCKER_REGISTRY="${IMAGE%%/*}"
if [ -z "$DOCKER_REGISTRY" ]; then
Expand Down
2 changes: 2 additions & 0 deletions integration-test/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM ubuntu:22.10
RUN apt-get update

0 comments on commit 871091f

Please sign in to comment.