Skip to content

Commit

Permalink
feat(main): add ci (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
cuisongliu authored Jan 13, 2022
1 parent 2eed0ec commit 0288718
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,27 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
VERSION: latest
- name: set up buildx
id: buildx
uses: crazy-max/ghaction-docker-buildx@v1
with:
version: latest

- name: Login to Docker Hub
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: build (and publish) main image
env:
# fork friendly ^^
DOCKER_REPO: ghcr.io/${{ github.repository_owner }}/endpoints-operator
run: |
docker buildx build \
--platform linux/amd64,linux/arm64 \
--build-arg VERSION=dev \
--push \
-t ${DOCKER_REPO}:dev \
-f Dockerfile \
.

0 comments on commit 0288718

Please sign in to comment.