-
Notifications
You must be signed in to change notification settings - Fork 5
36 lines (31 loc) · 826 Bytes
/
Copy pathbuild_docker.yml
File metadata and controls
36 lines (31 loc) · 826 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Publish Docker image
on:
push:
branches:
- main
paths:
- '.github/**'
- '.assets/**'
- 'modules/**'
workflow_dispatch:
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v6
with:
path: linux-setup-scripts
- name: Docker Login
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker images
uses: docker/build-push-action@v7
with:
context: linux-setup-scripts
file: linux-setup-scripts/.assets/docker/Dockerfile
push: true
tags: muscimol/pwsh:latest