Skip to content

Update gitpod/openvscode-server Docker tag to v1.96.4 #97

Update gitpod/openvscode-server Docker tag to v1.96.4

Update gitpod/openvscode-server Docker tag to v1.96.4 #97

Workflow file for this run

name: build docker image
on:
pull_request:
branches:
- main
push:
branches:
- main
env:
DOCKER_REPO: jonoh/vscode
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
if: ${{ github.ref == 'refs/heads/main' }}
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Bump version and push tag
id: create_tag
uses: mathieudutour/[email protected]
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
create_annotated_tag: true
- name: Set docker tag
id: docker_tag
env:
NEW_TAG: ${{ steps.create_tag.outputs.new_tag }}
run: |
echo "::set-output name=DOCKER_TAG::$([ "$NEW_TAG" = "" ] && echo test || echo "$NEW_TAG")"
- name: Build and push
id: docker_build
uses: docker/build-push-action@v3
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: ${{ github.ref == 'refs/heads/main' }}
cache-from: type=registry,ref=${{ env.DOCKER_REPO }}:latest
tags: "${{ env.DOCKER_REPO }}:${{ steps.docker_tag.outputs.DOCKER_TAG }},${{ env.DOCKER_REPO }}:latest"
- name: Update repo description
uses: peter-evans/dockerhub-description@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
repository: ${{ env.DOCKER_REPO }}