|
1 | 1 | name: Docker image |
2 | 2 | on: |
3 | | - workflow_dispatch: |
4 | | - push: |
5 | | - branches: |
6 | | - - main |
| 3 | + workflow_dispatch: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - main |
7 | 7 |
|
8 | 8 | jobs: |
9 | | - docker-release: |
10 | | - runs-on: ubuntu-latest |
11 | | - name: Build and publish Docker image |
12 | | - steps: |
13 | | - - name: Checkout the repo |
14 | | - uses: actions/checkout@v3 |
| 9 | + docker-release: |
| 10 | + runs-on: ubuntu-latest |
| 11 | + name: Build and publish Docker image |
| 12 | + steps: |
| 13 | + - name: Checkout the repo |
| 14 | + uses: actions/checkout@v3 |
15 | 15 |
|
16 | | - - name: Prepare |
17 | | - id: prepare |
18 | | - run: | |
19 | | - { |
20 | | - echo "version=$(jq -r .version supervisor-ide-config.json)" |
21 | | - echo "manifest=$(cat supervisor-ide-config.json | jq -c)" |
22 | | - } >> $GITHUB_OUTPUT |
| 16 | + - name: Prepare |
| 17 | + id: prepare |
| 18 | + run: | |
| 19 | + { |
| 20 | + echo "version=$(jq -r .version supervisor-ide-config.json)" |
| 21 | + echo "manifest=$(cat supervisor-ide-config.json | jq -c)" |
| 22 | + } >> $GITHUB_OUTPUT |
23 | 23 |
|
24 | | - - name: Test Prepare |
25 | | - id: test-prepare |
26 | | - run: | |
27 | | - echo '${{ steps.prepare.outputs.version }}' |
28 | | - echo '${{ steps.prepare.outputs.manifest }}' |
| 24 | + - name: Test Prepare |
| 25 | + id: test-prepare |
| 26 | + run: | |
| 27 | + echo '${{ steps.prepare.outputs.version }}' |
| 28 | + echo '${{ steps.prepare.outputs.manifest }}' |
29 | 29 |
|
30 | | - - name: Auth Google Cloud SDK |
31 | | - uses: google-github-actions/auth@v0 |
32 | | - with: |
33 | | - credentials_json: ${{ secrets.GCP_SA_KEY }} |
| 30 | + - name: Auth Google Cloud SDK |
| 31 | + uses: google-github-actions/auth@v0 |
| 32 | + with: |
| 33 | + credentials_json: ${{ secrets.GCP_SA_KEY }} |
34 | 34 |
|
35 | | - - name: Set up Google Cloud SDK |
36 | | - uses: google-github-actions/setup-gcloud@v0 |
37 | | - with: |
38 | | - project_id: ${{ secrets.GCP_PROJECT_ID }} |
| 35 | + - name: Set up Google Cloud SDK |
| 36 | + uses: google-github-actions/setup-gcloud@v0 |
| 37 | + with: |
| 38 | + project_id: ${{ secrets.GCP_PROJECT_ID }} |
39 | 39 |
|
40 | | - - name: Set up Docker |
41 | | - run: | |
42 | | - gcloud auth configure-docker --quiet |
| 40 | + - name: Set up Docker |
| 41 | + run: | |
| 42 | + gcloud auth configure-docker --quiet |
43 | 43 |
|
44 | | - - name: Build and push |
45 | | - uses: docker/build-push-action@v4 |
46 | | - with: |
47 | | - push: true |
48 | | - context: . |
49 | | - tags: | |
50 | | - eu.gcr.io/gitpod-core-dev/build/ide/xterm-web:commit-${{ github.sha }} |
51 | | - eu.gcr.io/gitpod-core-dev/build/ide/xterm-web:latest |
52 | | - build-args: | |
53 | | - XTERM_COMMIT=${{ github.sha }} |
54 | | - XTERM_VERSION=${{ steps.prepare.outputs.version }} |
55 | | - XTERM_MANIFEST=${{ steps.prepare.outputs.manifest }} |
56 | | - |
| 44 | + - name: Build and push |
| 45 | + uses: docker/build-push-action@v4 |
| 46 | + with: |
| 47 | + push: true |
| 48 | + context: . |
| 49 | + tags: | |
| 50 | + eu.gcr.io/gitpod-core-dev/build/ide/xterm-web:commit-${{ github.sha }} |
| 51 | + eu.gcr.io/gitpod-core-dev/build/ide/xterm-web:latest |
| 52 | + build-args: | |
| 53 | + XTERM_COMMIT=${{ github.sha }} |
| 54 | + XTERM_VERSION=${{ steps.prepare.outputs.version }} |
| 55 | + XTERM_MANIFEST=${{ steps.prepare.outputs.manifest }} |
0 commit comments