Skip to content

Commit

Permalink
Push image
Browse files Browse the repository at this point in the history
  • Loading branch information
brtkwr committed Apr 20, 2021
1 parent 617e5b4 commit 72453b3
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/workflows/build-push-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish Docker image
on:
release:
types: [published]
jobs:
push_to_registry:
name: Push Docker image to GitHub Packages
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Prepare
run: make prepare
- name: Push to GitHub Packages
uses: docker/build-push-action@v1
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
repository: stackhpc/hyperkube-base
tag_with_ref: true
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ clean:
rm -rf cni-bin/
rm -f scripts/iptables-wrapper-installer.sh

build: clean cni-bin/bin scripts/iptables-wrapper-installer.sh
prepare: cni-bin/bin scripts/iptables-wrapper-installer.sh

build: clean prepare
docker build --pull --build-arg ARCH=${ARCH} -t $(IMAGE):$(TAG)-linux-$(ARCH) .

push: build
Expand Down

0 comments on commit 72453b3

Please sign in to comment.