Skip to content

Commit

Permalink
fix: Split the dockers
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Nov 11, 2024
1 parent b42d15c commit e8a00a4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/rust-on-nails-devcontainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ jobs:

- name: Build Docker file (AMD64)
run: |
docker build --platform amd64 -t purtontech/rust-on-nails-devcontainer dev-env-as-code
docker push purtontech/rust-on-nails-devcontainer
docker build --platform amd64 -t purtontech/rust-on-nails-devcontainer-amd64 dev-env-as-code
docker push purtontech/rust-on-nails-devcontainer-amd64
- name: Build Docker file (ARM64)
run: |
docker build --platform arm64 -t purtontech/rust-on-nails-devcontainer dev-env-as-code
docker push purtontech/rust-on-nails-devcontainer
docker build --platform arm64 -t purtontech/rust-on-nails-devcontainer-arm64 dev-env-as-code
docker push purtontech/rust-on-nails-devcontainer-arm64
# If this is a release
# create release notes
Expand Down
6 changes: 5 additions & 1 deletion .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
"@semantic-release/release-notes-generator",
"@semantic-release/github",
["@semantic-release-plus/docker", {
"name": "purtontech/rust-on-nails-devcontainer:latest",
"name": "purtontech/rust-on-nails-devcontainer-amd64:latest",
"skipLogin": true
}],
["@semantic-release-plus/docker", {
"name": "purtontech/rust-on-nails-devcontainer-arm64:latest",
"skipLogin": true
}],
["@semantic-release/exec", {
Expand Down
2 changes: 1 addition & 1 deletion nails-devcontainer/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM purtontech/rust-on-nails-devcontainer:1.3.6 AS development
FROM purtontech/rust-on-nails-devcontainer-amd64:1.3.6 AS development

COPY ps1.bash .
RUN cat ps1.bash >> ~/.bashrc && sudo rm ps1.bash
Expand Down
2 changes: 1 addition & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
echo "Updating files..."
sed -i "s/repo_version = .*$/repo_version = \"Github $1\"/" ./rust-on-nails.com/content/_index.fi.md
sed -i "s/repo_version = .*$/repo_version = \"Github $1\"/" ./rust-on-nails.com/content/_index.md
sed -i "s/purtontech\/rust-on-nails-devcontainer:.*$/purtontech\/rust-on-nails-devcontainer:$1 AS development/" ./nails-devcontainer/.devcontainer/Dockerfile
sed -i "s/purtontech\/rust-on-nails-devcontainer-amd64:.*$/purtontech\/rust-on-nails-devcontainer-amd64:$1 AS development/" ./nails-devcontainer/.devcontainer/Dockerfile

git add .
git commit -am "chore(deployment): Update files with new version $1"
Expand Down

0 comments on commit e8a00a4

Please sign in to comment.