Skip to content

Commit

Permalink
Test the docker pack direct after CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jaypan committed Sep 3, 2024
1 parent 7c484e7 commit 37bdbec
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Checkout Sources (actions/checkout)
uses: actions/checkout@v3

- name: "[Ceck] cargo fmt"
- name: "[Check] cargo fmt"
run: |
cargo fmt --check
Expand All @@ -40,3 +40,27 @@ jobs:
- name: "[Check] cargo clippy"
run: |
cargo clippy --release -- -Dwarnings
- name: Log in to Docker Hub
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}

- name: "Extract metadata (tags, labels) for Docker"
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ${{ secrets.DOCKER_REG_PARACHAIN }}-test
tags: |
type=ref,event=branch
type=ref,event=pr
- name: "Build and push"
uses: docker/build-push-action@v3
with:
context: .
file: scripts/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}

0 comments on commit 37bdbec

Please sign in to comment.