Skip to content

Commit

Permalink
Merge pull request #87 from srust/move_csidriver_out_of_beta
Browse files Browse the repository at this point in the history
Fix github action for release images to docker hub
  • Loading branch information
srust authored Mar 3, 2023
2 parents ee3c75e + ba4b292 commit c743a61
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/docker-hub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@61b9e3751b92087fd0b06925ba6dd6314e06f089 # pin@master
- name: Build
run: make build-linux
- name: Publish latest to Registry
- name: Build and Publish latest release to Registry
uses: elgohr/Publish-Docker-Github-Action@13c6c46d98bc92e6c046454248cd28630400846a # pin@master
with:
name: linode/linode-blockstorage-csi-driver
Expand Down
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.

PLATFORM ?= linux/amd64
REGISTRY_NAME=index.docker.io/linode
IMAGE_NAME=linode-blockstorage-csi-driver
IMAGE_VERSION?=canary
IMAGE_TAG=$(REGISTRY_NAME)/$(IMAGE_NAME):$(IMAGE_VERSION)
REV=$(shell git describe --long --tags --dirty)
PLATFORM ?= linux/amd64
REGISTRY_NAME ?= index.docker.io/linode
IMAGE_NAME ?= linode-blockstorage-csi-driver
REV := $(shell git describe --long --tags --dirty)
IMAGE_VERSION ?= $(REV)
IMAGE_TAG ?= $(REGISTRY_NAME)/$(IMAGE_NAME):$(IMAGE_VERSION)

export GO111MODULE=on

Expand Down
3 changes: 2 additions & 1 deletion app/linode/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ COPY go.sum .
COPY app/linode/main.go .
COPY pkg ./pkg

ENV GO111MODULE=on
RUN go mod download

RUN CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-X main.vendorVersion='${REV}' -extldflags "-static"' -o /bin/linode-blockstorage-csi-driver /linode

FROM alpine
FROM alpine:3.16.2
LABEL maintainers="Linode"
LABEL description="Linode CSI Driver"

Expand Down

0 comments on commit c743a61

Please sign in to comment.