Skip to content

Commit

Permalink
feat(ci): yay working ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ecshreve committed Apr 18, 2024
1 parent 927c655 commit 6aea1fd
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 69 deletions.
3 changes: 3 additions & 0 deletions .devcontainer/toolbox-dev/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM ghcr.io/ecshreve/toolbox:latest as toolbox

CMD [ "/bin/bash" ]
4 changes: 2 additions & 2 deletions .devcontainer/toolbox-dev/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
{
"name": "toolbox-dev",
"build": {
"dockerfile": "../../Dockerfile",
"context": "../..",
"dockerfile": "Dockerfile",
"context": ".",
"cacheFrom": "ghcr.io/ecshreve/toolbox-dev:latest"
},
"features": {
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/toolbox-prod/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile
{
"name": "toolbox-prod",
"image": "ghcr.io/ecshreve/toolbox-dev:v0.0.42"
"image": "ghcr.io/ecshreve/toolbox-dev:latest"


// Features to add to the dev container. More info: https://containers.dev/features.
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ jobs:
imageName: ghcr.io/ecshreve/toolbox-dev
cacheFrom: ghcr.io/ecshreve/toolbox-dev
configFile: .devcontainer/toolbox-dev/devcontainer.json
push: always
push: filter
eventFilterForPush: push

release:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
Expand All @@ -67,7 +68,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
Expand All @@ -82,4 +83,4 @@ jobs:
body: |
## info
![toolbox](https://img.shields.io/badge/toolbox-${{ github.ref_name }}-purple)
[![toolbox](https://img.shields.io/badge/toolbox-${{ github.ref_name }}-purple)](https://github.com/ecshreve/toolbox/pkgs/container/toolbox)
63 changes: 0 additions & 63 deletions .github/workflows/release.yml

This file was deleted.

0 comments on commit 6aea1fd

Please sign in to comment.