forked from grafana/k6
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 899 Bytes
/
packager.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
name: k6packager
on:
# Enable manually triggering this workflow via the API or web UI
workflow_dispatch:
schedule:
- cron: '0 0 * * 0' # weekly (Sundays at 00:00)
defaults:
run:
shell: bash
jobs:
publish-packager:
runs-on: ubuntu-latest
env:
VERSION: 0.0.3
AWSCLI_VERSION: 2.1.36
S3CMD_VERSION: 2.1.0
DOCKER_IMAGE_ID: ghcr.io/grafana/k6packager
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Build
run: |
cd packaging
docker-compose build packager
- name: Publish
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin
docker push "${DOCKER_IMAGE_ID}:latest"
docker tag "${DOCKER_IMAGE_ID}" "${DOCKER_IMAGE_ID}:${VERSION}"
docker push "${DOCKER_IMAGE_ID}:${VERSION}"