Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release automation; Bump go version #108

Merged
merged 5 commits into from
Jul 25, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Docker Plugin Publish
on:
workflow_dispatch: null
release:
types: [ published ]
jobs:
oci_publish:
name: Build and publish the docker plugin
runs-on: ubuntu-latest
steps:
- name: Clone Repository
uses: actions/checkout@v3

- name: setup python 3
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push to DockerHub
run: make deploy
zliang-akamai marked this conversation as resolved.
Show resolved Hide resolved
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.18.3-alpine as builder
FROM golang:1.20-alpine as builder
ENV GO111MODULE=on
ARG VERSION=0
COPY . /docker-volume-linode
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export GO111MODULE=on

all: clean build

deploy:
deploy: $(PLUGIN_DIR)
# workaround for plugin
docker plugin rm -f ${PLUGIN_NAME} 2>/dev/null || true
docker plugin create ${PLUGIN_NAME} ./$(PLUGIN_DIR)
Expand Down