Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
blademainer committed Dec 29, 2020
1 parent 679a7a7 commit c7324a0
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 52 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This is a basic workflow to help you get started with Actions
name: official-docker
name: Build and Deploy

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
Expand Down Expand Up @@ -103,3 +103,28 @@ jobs:
cache-to: type=local,dest=/tmp/.buildx-cache
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
# This workflow contains a single job called "build"
deploy:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

# Runs a single command using the runners shell
- name: Run a one-line script
run: echo Hello, world!

# Runs a set of commands using the runners shell
- name: Run a multi-line script
run: |
COMMIT_SHORT=${GITHUB_SHA:0:7}
export version="sha-${COMMIT_SHORT}"
./scripts/generate_deploys.sh
- uses: actions-hub/kubectl@master
env:
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
with:
args: apply -f ./generated-deployments
51 changes: 0 additions & 51 deletions .github/workflows/kubectl.yml

This file was deleted.

0 comments on commit c7324a0

Please sign in to comment.