Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Push docker containers to Artifactory #361

Merged
merged 1 commit into from
Feb 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ name: CI Matrix
on:
pull_request:
push:
branches: [master]
branches: [master, dwest/test-docker]

jobs:
docker:
Expand All @@ -35,6 +35,19 @@ jobs:
docker run --rm -itd --entrypoint bash --name pate -v `pwd`/tests/aarch32:/tests pate
(echo "cabal run pate-test-aarch32 -- -p args-equal") | script -q /dev/null docker attach pate

- name: Artifactory Login
uses: docker/login-action@v2
with:
registry: artifactory.galois.com:5025
username: ${{ secrets.ARTIFACTORY_USER }}
password: ${{ secrets.ARTIFACTORY_KEY }}

- name: Push Docker image
run: |
CI_COMMIT_SHORT_SHA=$(git rev-parse --short $GITHUB_SHA)
docker tag pate artifactory.galois.com:5025/pate/pate:$CI_COMMIT_SHORT_SHA
docker push artifactory.galois.com:5025/pate/pate:$CI_COMMIT_SHORT_SHA

build:
runs-on: ${{ matrix.os }}
env:
Expand Down
Loading