-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (36 loc) · 1 KB
/
docker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Verify example Ubuntu Docker Build + Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
verify-docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: git fetch origin test:test
- uses: docker/setup-buildx-action@v3
- name: Create AWS credentials file
run: |
mkdir -p .aws
cat <<EOF >.aws/credentials
[default]
aws_access_key_id=${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key=${{ secrets.AWS_SECRET_ACCESS_KEY }}
EOF
- uses: docker/build-push-action@v6
with:
context: .
push: false
load: true
tags: git-diff-dvc
cache-from: type=gha
cache-to: type=gha,mode=max
secret-files: |
aws_credentials=.aws/credentials
- name: Run container (verify README examples)
run: docker run --rm git-diff-dvc