-
Notifications
You must be signed in to change notification settings - Fork 7
51 lines (45 loc) · 1.57 KB
/
build_push_stata_gen3_licensed.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Push Stata Gen3-licensed Image to quay
on:
push:
paths:
- jupyter-pystata-gen3-licensed/**
- .github/workflows/build_push_stata_gen3_licensed.yml
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: prewk/s3-cp-action@v2
with:
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
source: 's3://ctds-stata/StataNow18Linux64.tar.gz'
dest: './jupyter-pystata-gen3-licensed/resources/'
- name: Extract branch name
id: extract_branch
run: |
echo "IMAGE_TAG=$(echo ${GITHUB_REF#refs/*/} | tr / _)"
echo "IMAGE_TAG=$(echo ${GITHUB_REF#refs/*/} | tr / _)" >> $GITHUB_ENV
- name: Login to Quay.io
id: login
uses: docker/login-action@v3
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_ROBOT_TOKEN }}
- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: |
quay.io/cdis/jupyter-pystata-gen3-licensed:${{ env.IMAGE_TAG }}
- name: Build and Push Image
uses: docker/build-push-action@v6
with:
context: ./jupyter-pystata-gen3-licensed
file: "./jupyter-pystata-gen3-licensed/Dockerfile"
push: true
tags: |
quay.io/cdis/jupyter-pystata-gen3-licensed:${{ env.IMAGE_TAG }}
labels: ${{ steps.meta.outputs.labels }}