Skip to content

Commit

Permalink
vscode image
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasBeuzen committed Feb 2, 2022
1 parent 7d9fdf8 commit 3206d42
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 22 deletions.
33 changes: 19 additions & 14 deletions .github/workflows/publish_image_to_dockerhub.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,33 @@
name: Publish Docker image on DockerHub
on:
push:
on:
push:
branches:
- main
paths:
- vscode
paths:
- 'Dockerfile'

jobs:
build:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@master

- name: Checkout repository
uses: actions/checkout@master
with:
fetch-depth: '0'

- name: Bump version and push tag
uses: anothrNick/[email protected]
id: bump
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
WITH_V: true
id: bump

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.bump.outputs.new_tag }}
release_name: ${{ steps.bump.outputs.new_tag }}
Expand All @@ -33,10 +36,12 @@ jobs:
- Rebuilt Docker image and published to DockerHub with new tag
draft: false
prerelease: false

- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: ubcmds/poetry
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
name: tbeuzen/py-pkgs-vscode
username: ${{ secrets.DOCKER_USERNAME_TB }}
password: ${{ secrets.DOCKER_PASSWORD_TB }}
tags: "latest,${{ steps.bump.outputs.new_tag }}"
with: vscode
8 changes: 0 additions & 8 deletions docker-compose.yml

This file was deleted.

0 comments on commit 3206d42

Please sign in to comment.