mirror of
https://github.com/linuxserver/docker-code-server.git
synced 2025-04-16 22:59:30 +02:00
41 lines
1.2 KiB
YAML
41 lines
1.2 KiB
YAML
# This is a basic workflow to help you get started with Actions
|
|
|
|
name: docker-image-builder
|
|
|
|
# Controls when the action will run.
|
|
on:
|
|
# Triggers the workflow on push or pull request events but only for the master branch
|
|
push:
|
|
branches: [ master ]
|
|
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
workflow_dispatch:
|
|
|
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
|
jobs:
|
|
building:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
-
|
|
name: Login to Docker Hub
|
|
uses: docker/login-action@v1
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
# Runs a single command using the runners shell
|
|
- name: Building code-server latest
|
|
run: docker build -t zombymediaic/code-server:latest .
|
|
|
|
- name: Building code-server version
|
|
run: docker build -t zombymediaic/code-server:1.0.1
|
|
|
|
|
|
# Runs a set of commands using the runners shell
|
|
- name: Pushing code-server latest
|
|
run: docker push zombymediaic/code-server:latest
|
|
- name: Pushing code-server version
|
|
run: docker push zombymediaic/code-server:1.0.1
|