[go: nahoru, domu]

Skip to content

Commit

Permalink
Test on 2.8
Browse files Browse the repository at this point in the history
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
  • Loading branch information
Yang Jiao authored and YangJiao0817 committed May 10, 2023
1 parent 48ee0e8 commit be7be59
Showing 1 changed file with 30 additions and 28 deletions.
58 changes: 30 additions & 28 deletions .github/workflows/build-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,24 @@ jobs:
- ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: 'google-github-actions/auth@v1'
with:
credentials_json: '${{ secrets.GCP_CREDENTIALS }}'
- uses: google-github-actions/setup-gcloud@v0
with:
version: '285.0.0'
- run: gcloud info
- name: Set up Go 1.20
uses: actions/setup-go@v1
with:
go-version: 1.20.4
id: go
- name: Setup Docker
uses: docker-practice/actions-setup-docker@master
with:
docker_version: 20.10
docker_channel: stable
- uses: actions/checkout@v3
# - uses: 'google-github-actions/auth@v1'
# with:
# credentials_json: '${{ secrets.GCP_CREDENTIALS }}'
# - uses: google-github-actions/setup-gcloud@v0
# with:
# version: '285.0.0'
# - run: gcloud info
# - name: Set up Go 1.20
# uses: actions/setup-go@v1
# with:
# go-version: 1.20.4
# id: go
# - name: Setup Docker
# uses: docker-practice/actions-setup-docker@master
# with:
# docker_version: 20.10
# docker_channel: stable
# - uses: actions/checkout@v3
- uses: jitterbit/get-changed-files@v1
id: changed-files
with:
Expand All @@ -46,12 +46,14 @@ jobs:
if: |
contains(steps.changed-files.outputs.modified, 'Dockerfile.base') ||
contains(steps.changed-files.outputs.modified, 'VERSION') ||
contains(steps.changed-files.outputs.modified, '.buildbaselog')
contains(steps.changed-files.outputs.modified, '.buildbaselog') ||
${{ github.ref }} == 'refs/heads/main'
run: |
set -x
echo "BUILD_BASE=true" >> $GITHUB_ENV
- name: Build Package
run: |
exit 0
set -x
env
df -h
Expand Down Expand Up @@ -116,12 +118,12 @@ jobs:
publishImage $target_branch $Harbor_Assets_Version "${{ secrets.DOCKER_HUB_USERNAME }}" "${{ secrets.DOCKER_HUB_PASSWORD }}"
- name: Slack Notification
uses: sonots/slack-notice-action@v3
with:
status: ${{ job.status }}
title: Build Package - ${{ env.BUILD_BUNDLE }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
if: always()
# - name: Slack Notification
# uses: sonots/slack-notice-action@v3
# with:
# status: ${{ job.status }}
# title: Build Package - ${{ env.BUILD_BUNDLE }}
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
# if: always()

0 comments on commit be7be59

Please sign in to comment.