-
Notifications
You must be signed in to change notification settings - Fork 118
39 lines (33 loc) · 1 KB
/
docker-devcontainer.yml
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
37
38
39
name: Docker devcontainer image
on:
push:
branches:
- master
paths:
- 'docker-images/devcontainer/Dockerfile'
workflow_dispatch:
jobs:
build-and-push:
name: Build and push image
runs-on: ubuntu-20.04
env:
IMAGE_TAG: '1.0.0'
DOCKER_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build image
run: |
docker build --no-cache \
--progress=plain \
--tag $DOCKER_USERNAME/pydeps-devcontainer:$IMAGE_TAG \
--file docker-images/devcontainer/Dockerfile .
- name: Push image to Docker Hub
run: |
docker push $DOCKER_USERNAME/pydeps-devcontainer:$IMAGE_TAG
# Built with ❤ by [Pipeline Foundation](https://pipeline.foundation)