Skip to content

Commit 2a8b934

Browse files
committed
Re-enable publish and cleanup CI steps
1 parent 59321be commit 2a8b934

File tree

1 file changed

+40
-41
lines changed

1 file changed

+40
-41
lines changed

.github/workflows/artifact.yml

Lines changed: 40 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ jobs:
8181
# tests should not be stopped when they fail on one of the OSes:
8282
fail-fast: false
8383
matrix:
84-
# name: ["Verify DH protocol model", "Verify DH core", "Verify DH I/O independence", "Verify DH core assumptions"]
8584
name:
8685
[
8786
"Verify DH protocol model",
@@ -174,43 +173,43 @@ jobs:
174173
- name: ${{ matrix.name }}
175174
run: docker run --entrypoint "/bin/bash" ${{ needs.Build.outputs.IMAGE_TAG }} -c "cp -r /dh-orig/. dh/; cp -r /ssm-agent-orig/. ssm-agent/; ${{ matrix.command }}"
176175

177-
# Publish:
178-
# runs-on: ubuntu-latest
179-
# needs: [Build, Test-DH, Test-SSM-Agent]
180-
# timeout-minutes: 5
181-
# # set per-job GITHUB_TOKEN permissions such that pushing the Docker image will be possible:
182-
# permissions:
183-
# packages: write
184-
# steps:
185-
# - name: Download artifact
186-
# uses: actions/download-artifact@v4
187-
# with:
188-
# name: ${{ env.IMAGE_WORKFLOW_ARTIFACT_NAME }}
189-
# path: /tmp
190-
191-
# - name: Load image
192-
# run: docker load --input /tmp/image.tar
193-
194-
# - name: Login to Github Packages
195-
# uses: docker/login-action@v3
196-
# with:
197-
# registry: ghcr.io
198-
# username: ${{ github.actor }}
199-
# password: ${{ secrets.GITHUB_TOKEN }}
200-
201-
# - name: Push image
202-
# run: docker push ${{ needs.Build.outputs.IMAGE_TAG }}
203-
204-
# Cleanup:
205-
# runs-on: ubuntu-latest
206-
# needs: Publish
207-
# if: always()
208-
# # set per-job GITHUB_TOKEN permissions such that deleting workflow artifacts will be possible:
209-
# permissions:
210-
# actions: write
211-
# steps:
212-
# - name: Delete artifact
213-
# uses: geekyeggo/delete-artifact@v5
214-
# with:
215-
# name: ${{ env.IMAGE_WORKFLOW_ARTIFACT_NAME }}
216-
# failOnError: false
176+
Publish:
177+
runs-on: ubuntu-latest
178+
needs: [Build, Test-DH, Test-SSM-Agent]
179+
timeout-minutes: 5
180+
# set per-job GITHUB_TOKEN permissions such that pushing the Docker image will be possible:
181+
permissions:
182+
packages: write
183+
steps:
184+
- name: Download artifact
185+
uses: actions/download-artifact@v4
186+
with:
187+
name: ${{ env.IMAGE_WORKFLOW_ARTIFACT_NAME }}
188+
path: /tmp
189+
190+
# - name: Load image
191+
# run: docker load --input /tmp/image.tar
192+
193+
# - name: Login to Github Packages
194+
# uses: docker/login-action@v3
195+
# with:
196+
# registry: ghcr.io
197+
# username: ${{ github.actor }}
198+
# password: ${{ secrets.GITHUB_TOKEN }}
199+
200+
# - name: Push image
201+
# run: docker push ${{ needs.Build.outputs.IMAGE_TAG }}
202+
203+
Cleanup:
204+
runs-on: ubuntu-latest
205+
needs: Publish
206+
if: always()
207+
# set per-job GITHUB_TOKEN permissions such that deleting workflow artifacts will be possible:
208+
permissions:
209+
actions: write
210+
steps:
211+
- name: Delete artifact
212+
uses: geekyeggo/delete-artifact@v5
213+
with:
214+
name: ${{ env.IMAGE_WORKFLOW_ARTIFACT_NAME }}
215+
failOnError: false

0 commit comments

Comments
 (0)