Skip to content

Commit 06e1a36

Browse files
Use DB container for exporting config (#38)
1 parent 1a18ce3 commit 06e1a36

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/export_config.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: export_config
22

33
on: workflow_call
44

5+
env:
6+
REGISTRY: ghcr.io
7+
58
jobs:
69
export_config:
710
name: export_config
@@ -11,7 +14,19 @@ jobs:
1114
image: ghcr.io/dpc-sdp/bay/ci-builder:5.x
1215
steps:
1316
- name: Checkout code
14-
uses: actions/checkout@v3
17+
uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
fetch-tags: true
21+
- name: Log into registry ghcr.io
22+
uses: docker/login-action@v3
23+
with:
24+
registry: ${{ env.REGISTRY }}
25+
username: ${{ github.actor }}
26+
password: ${{ secrets.GITHUB_TOKEN }}
27+
- name: Uncomment database snapshot environment variable
28+
run: |
29+
sed -i 's|# DB_IMAGE_SNAPSHOT|DB_IMAGE_SNAPSHOT|' .env
1530
- name: Configure Git
1631
run: |
1732
git config --global user.email "${{ secrets.DEPLOY_USER_EMAIL }}" && git config --global user.name "${{ secrets.DEPLOY_USER_NAME }}"

0 commit comments

Comments
 (0)