You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(sconify)!: move usernames to secret and ouput tags (#77)
* fix(sconify)!: move usernames to secrets
* fix(sconify)!: output debug-image-tag and prod-image-tag instead of debug-image and prod-image
* docs(sconify): evergreen workflow version example
echo "tag=${{ steps.prepare-command.outputs.debug-image-tag }}" | tee -a "$GITHUB_OUTPUT"
196
+
echo "checksum=0x$(docker image inspect ${{ steps.prepare-command.outputs.image-repo }}:${{ steps.prepare-command.outputs.debug-image-tag }} | jq .[0].RepoDigests[0] | sed 's/"//g' | awk -F '@sha256:' '{print $2}')" | tee -a "$GITHUB_OUTPUT"
197
+
echo "mrenclave=$(docker run --rm -e SCONE_HASH=1 ${{ steps.prepare-command.outputs.image-repo }}:${{ steps.prepare-command.outputs.debug-image-tag }})" | tee -a "$GITHUB_OUTPUT"
echo "tag=${{ steps.prepare-command.outputs.prod-image-tag }}" | tee -a "$GITHUB_OUTPUT"
219
+
echo "checksum=0x$(docker image inspect ${{ steps.prepare-command.outputs.image-repo }}:${{ steps.prepare-command.outputs.prod-image-tag }} | jq .[0].RepoDigests[0] | sed 's/"//g' | awk -F '@sha256:' '{print $2}')" | tee -a "$GITHUB_OUTPUT"
220
+
echo "mrenclave=$(docker run --rm -e SCONE_HASH=1 ${{ steps.prepare-command.outputs.image-repo }}:${{ steps.prepare-command.outputs.prod-image-tag }})" | tee -a "$GITHUB_OUTPUT"
Ensure that the following variables are added to your repository's settings:
135
-
136
-
- `DOCKER_USERNAME`: Your Docker Registry username
137
-
- `SCONTAIN_USERNAME`: Your Scontain username
138
-
139
-
NB: Beware if you choose to use secrets to store registries usernames;
140
-
registries usernames can appear in sconified image names outputted as `outputs.debug-image` and `outputs.prod-image`, in such a case GitHub Actions blanks the outputs with this waring:
141
-
142
-
> Skip output 'prod-image' since it may contain secret.
143
-
144
-
> Skip output 'debug-image' since it may contain secret.
145
-
146
-
4. **Configure Secrets**
135
+
3. **Configure Secrets**
147
136
Ensure that the following secrets are added to your repository's settings:
137
+
- `DOCKER_USERNAME`: Your Docker Registry username
148
138
- `DOCKER_PASSWORD`: Your Docker Registry password or access token
139
+
- `SCONTAIN_USERNAME`: Your Scontain username
149
140
- `SCONTAIN_PASSWORD`: Your Scontain password or access token
150
141
- `SCONE_SIGNING_KEY`: The key to use for signing Scone Prod applications
0 commit comments