diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..9a64ba1 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,24 @@ +name: Publish Docker images + +on: + push: + tags: + - "*" + +jobs: + docker-image-2-0: + name: v2.0 + if: github.event_name == 'push' && contains(github.ref, 'v2.0.') + runs-on: ubuntu-18.04 + env: + IMAGE_NAME: docker.pkg.github.com/${{ github.repository }}/linux:2.0 + steps: + - uses: actions/checkout@v1 + with: + fetch-depth: 1 + - name: Build & Push + run: | + docker login docker.pkg.github.com -u owner -p ${{ secrets.GITHUB_TOKEN }} + docker build -t $IMAGE_NAME docker/linux/2.0/ + docker push $IMAGE_NAME + timeout-minutes: 10 diff --git a/README.md b/README.md index f38b402..d730fa6 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,8 @@ Supported tags and respective `Dockerfile` links: -・latest ([docker/linux/1.4/Dockerfile](https://github.com/pottava/aws-s3-proxy/blob/master/docker/linux/1.4/Dockerfile)) -・2.0rc ([docker/linux/2.0/Dockerfile](https://github.com/pottava/aws-s3-proxy/blob/master/docker/linux/2.0/Dockerfile)) +・latest ([docker/linux/2.0/Dockerfile](https://github.com/pottava/aws-s3-proxy/blob/master/docker/linux/2.0/Dockerfile)) +・2.0 ([docker/linux/2.0/Dockerfile](https://github.com/pottava/aws-s3-proxy/blob/master/docker/linux/2.0/Dockerfile)) ・1.4 ([docker/linux/1.4/Dockerfile](https://github.com/pottava/aws-s3-proxy/blob/master/docker/linux/1.4/Dockerfile)) ・1.4-win ([docker/windows/1.4/Dockerfile](https://github.com/pottava/aws-s3-proxy/blob/master/docker/windows/1.4/Dockerfile)) ・1 ([docker/linux/1.4/Dockerfile](https://github.com/pottava/aws-s3-proxy/blob/master/docker/linux/1.4/Dockerfile))