Skip to content

Commit

Permalink
bump vlang version
Browse files Browse the repository at this point in the history
  • Loading branch information
up9cloud committed Feb 10, 2022
1 parent c450866 commit d735e7b
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 5 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: docker/build-push-action@v2
with:
push: true
file: ./Dockerfile
tags: sstc/vlang:latest
- uses: actions/checkout@v2
- uses: christian-korneck/update-container-description-action@v1
env:
DOCKER_USER: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKER_PASS: ${{ secrets.DOCKERHUB_PASSWORD }}
with:
destination_container_repo: sstc/vlang
short_description: https://github.com/${{ github.repository }}
- uses: up9cloud/action-notify@master
if: cancelled() == false
env:
GITHUB_JOB_STATUS: ${{ job.status }}
TELEGRAM_BOT_TOKEN: ${{secrets.TELEGRAM_BOT_TOKEN}}
TELEGRAM_CHAT_ID: ${{secrets.TELEGRAM_CHAT_ID}}
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
FROM buildpack-deps:buster-curl

ARG VERSION=0.2.2
ARG VERSION=0.2.4

ENV VLANG_VERSION $VERSION
ENV VLANG_SRC_URL https://github.com/vlang/v/archive/${VERSION}.zip
ENV VLANG_SRC_SHA256 17b6e5391a2e362f18ace0a27092a655826d1c1408c40cd1f7329f9b8f08f379
ENV VLANG_URL https://github.com/vlang/v/releases/download/${VERSION}/v_linux.zip
ENV VLANG_SHA256 d791102173b35f8af1446b7a6207b326dc8d3ddf3f43f433979616550e85d56d

RUN set -ex; \
apt-get update; \
Expand All @@ -21,7 +19,6 @@ RUN set -ex; \
WORKDIR /opt
RUN set -ex; \
wget -O v.zip "$VLANG_URL"; \
echo "$VLANG_SHA256 v.zip" | sha256sum -c; \
unzip -o v.zip -d vlang; \
rm v.zip; \
ln -s /opt/vlang/v/v /usr/local/bin/v; \
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020
Copyright (c) 2020-2022 https://github.com/up9cloud

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down

0 comments on commit d735e7b

Please sign in to comment.