Skip to content

refactor(main): upgrade robot (#131) #32

refactor(main): upgrade robot (#131)

refactor(main): upgrade robot (#131) #32

Workflow file for this run

name: Go for Push
on:
push:
branches: [ main ]
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Set up Go
uses: actions/setup-go@master
with:
go-version: 1.16.x
- name: Prepare
id: prepare
run: |
TAG=${GITHUB_REF#refs/tags/}
echo ::set-output name=tag_name::${TAG}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1
with:
version: latest
args: release --snapshot --rm-dist --timeout=1h
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 dockerfiles/endpoints-operator/Dockerfile \
.
- name: build (and publish) cepctl image
env:
# fork friendly ^^
DOCKER_REPO: ghcr.io/${{ github.repository_owner }}/cepctl
run: |
docker buildx build \
--platform linux/amd64,linux/arm64 \
--build-arg VERSION=dev \
--push \
-t ${DOCKER_REPO}:dev \
-f dockerfiles/cepctl/Dockerfile \
.