Skip to content
This repository was archived by the owner on Mar 13, 2024. It is now read-only.

Commit db76a31

Browse files
tizayigilesknap
authored andcommitted
simplify local container workflow
1 parent b9bf30b commit db76a31

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{
33
"name": "Python 3 Developer Container",
44
"build": {
5-
"dockerfile": "Dockerfile",
5+
"dockerfile": "../Dockerfile",
66
"target": "build",
77
// Only upgrade pip, we will install the project below
88
"args": {

.github/workflows/code.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ jobs:
129129
- name: Download wheel and lockfiles
130130
uses: actions/download-artifact@v3
131131
with:
132-
path: .devcontainer
132+
path: artifacts/
133133

134134
- name: Log in to GitHub Docker Registry
135135
if: github.event_name != 'pull_request'
@@ -161,7 +161,8 @@ jobs:
161161
load: ${{ ! (github.event_name == 'push' && startsWith(github.ref, 'refs/tags')) }}
162162
tags: ${{ steps.meta.outputs.tags }}
163163
labels: ${{ steps.meta.outputs.labels }}
164-
context: .devcontainer
164+
context: artifacts/
165+
file: ./Dockerfile
165166
# If you have a long docker build, uncomment the following to turn on caching
166167
# For short build times this makes it a little slower
167168
#cache-from: type=gha
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#
66
FROM python:3.11 as build
77

8-
ARG PIP_OPTIONS
8+
ARG PIP_OPTIONS=.
99

1010
# Add any system dependencies for the developer/build environment here e.g.
1111
# RUN apt-get update && apt-get upgrade -y && \

0 commit comments

Comments
 (0)