Skip to content

Commit 4091125

Browse files
committed
aaa
1 parent 0c71c62 commit 4091125

File tree

3 files changed

+18
-14
lines changed

3 files changed

+18
-14
lines changed

.github/actions/bitbake-build/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ runs:
6060
run: |
6161
ls -lh ~/yocto-meta-wpe-image-${{ inputs.repo_release }}/builds/${{ inputs.bitbake_buildname }}/tmp/deploy/images/${{ inputs.bitbake_machine }}/
6262
PREFIX=${{ steps.timestamp.outputs.prefix }}
63-
s3cmd put --recursive ~/yocto-meta-wpe-image-${{ inputs.repo_release }}/builds/${{ inputs.bitbake_buildname }}/tmp/deploy/images/${{ inputs.bitbake_machine }} s3://yocto/${PREFIX}-${{ inputs.bitbake_target }}-${{ inputs.bitbake_machine }}/
63+
s3cmd put --recursive ~/yocto-meta-wpe-image-${{ inputs.repo_release }}/builds/${{ inputs.bitbake_buildname }}/tmp/deploy/images/${{ inputs.bitbake_machine }} s3://yocto/${PREFIX}-${{ inputs.bitbake_buildname }}-${{ inputs.bitbake_target }}/
6464
- name: Clean the tmp dir
6565
if: always()
6666
shell: bash

.github/actions/s3-configure/action.yml

+4-8
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,13 @@ runs:
1515
steps:
1616
- name: Configure s3cmd
1717
shell: bash
18-
env:
19-
S3_ACCESS_KEY: ${{ inputs.access_key }}
20-
S3_SECRET_KEY: ${{ inputs.secret_key }}
21-
S3_HOST_BASE: ${{ inputs.host_base }}
2218
run: |
2319
cat > ~/.s3cfg <<EOL
2420
[default]
25-
access_key = ${S3_ACCESS_KEY}
26-
secret_key = ${S3_SECRET_KEY}
27-
host_base = ${S3_HOST_BASE}
28-
host_bucket = %(bucket)s.${S3_HOST_BASE}
21+
access_key = ${{ inputs.access_key }}
22+
secret_key = ${{ inputs.secret_key }}
23+
host_base = ${{ inputs.host_base }}
24+
host_bucket = %(bucket)s.${{ inputs.host_base }}
2925
use_https = True
3026
gpg_command = /usr/bin/gpg
3127
EOL

.github/workflows/test-build.yml

+13-5
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,23 @@ jobs:
66
if: "!contains(github.event.head_commit.message, 'ci skip')"
77
steps:
88
- name: test
9+
env:
10+
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
11+
S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }}
12+
S3_HOST_BASE: ${{ secrets.S3_HOST_BASE }}
913
run: |
1014
echo secrets.S3_HOST_BASE
11-
echo ${{ secrets.S3_HOST_BASE }}
15+
echo ${S3_HOST_BASE}
1216
- uses: actions/checkout@v3
1317
- uses: ./.github/actions/s3-configure
18+
env:
19+
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
20+
S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }}
21+
S3_HOST_BASE: ${{ secrets.S3_HOST_BASE }}
1422
with:
15-
access_key: ${{ secrets.S3_ACCESS_KEY }}
16-
secret_key: ${{ secrets.S3_SECRET_KEY }}
17-
host_base: ${{ secrets.S3_HOST_BASE }}
23+
access_key: ${S3_ACCESS_KEY}
24+
secret_key: ${S3_SECRET_KEY}
25+
host_base: ${S3_HOST_BASE}
1826
- uses: ./.github/actions/bitbake-repo
1927
with:
2028
repo_release: 'scarthgap'
@@ -34,7 +42,7 @@ jobs:
3442
#- uses: actions/checkout@v3
3543
- uses: ./.github/actions/bitbake-build
3644
with:
37-
bitbake_buildname: build-${{ matrix.machine }}
45+
bitbake_buildname: wpe-${{ matrix.wpe_vers }}-${{ matrix.machine }}
3846
bitbake_machine: ${{ matrix.machine }}
3947
bitbake_source: 'poky-wayland layers.raspberrypi conf.wpe-${{ matrix.wpe_vers }} --update-config'
4048
repo_release: ${{ matrix.yocto_rel }}

0 commit comments

Comments
 (0)