Skip to content

Commit

Permalink
feat: build for release
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Mar 5, 2023
1 parent 900cf46 commit 836800c
Show file tree
Hide file tree
Showing 8 changed files with 2,641 additions and 10,514 deletions.
14 changes: 0 additions & 14 deletions .devcontainer/Dockerfile

This file was deleted.

17 changes: 0 additions & 17 deletions .devcontainer/base.Dockerfile

This file was deleted.

62 changes: 28 additions & 34 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,45 +1,39 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.238.1/containers/typescript-node
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node
{
"name": "Node.js & TypeScript",
"build": {
"dockerfile": "Dockerfile",
// Update 'VARIANT' to pick a Node version: 18, 16, 14.
// Append -bullseye or -buster to pin to an OS version.
// Use -bullseye variants on local on arm64/Apple Silicon.
"args": {
"VARIANT": "18-bullseye"
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/typescript-node:0-18",
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
"installOhMyZsh": true,
"upgradePackages": true
},
"ghcr.io/devcontainers/features/docker-in-docker:2": {
"dockerDashComposeVersion": "v2"
},
"ghcr.io/devcontainers/features/git:1": {},
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/dhoeric/features/act:1": {},
"ghcr.io/devcontainers-contrib/features/zsh-plugins:0": {
"plugins": "zsh-syntax-highlighting",
"omzPlugins": "https://github.com/zsh-users/zsh-syntax-highlighting.git"
}
},

// Configure tool-specific properties.
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"dbaeumer.vscode-eslint",
"yzhang.markdown-all-in-one",
"ms-vscode.makefile-tools",
"christian-kohler.npm-intellisense",
"esbenp.prettier-vscode"
]
}
},
// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

"onCreateCommand": "npm install; brew install act",
"updateContentCommand": "npm install",
"postStartCommand": "sudo apt update && sudo apt full-upgrade -y",
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "yarn install",
"onCreateCommand": "npm install"

// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "node",
"features": {
"docker-in-docker": "latest",
"git": "latest",
"github-cli": "latest",
"homebrew": "latest"
}
// Configure tool-specific properties.
// "customizations": {},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
18 changes: 9 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ on: [pull_request]

env:
RUNNER_TEMP: /tmp
TEST_ARTIFACT_VERSION: 0.8.9
TEST_ARTIFACT_VERSION: 0.8.13

jobs:
local_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.0.2
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
Expand All @@ -31,7 +31,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3.0.2
- uses: actions/checkout@v3

- name: Set up action.yml
run: cp action_ci.yml action.yml
Expand All @@ -54,7 +54,7 @@ jobs:
test_build_then_publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.0.2
- uses: actions/checkout@v3

- name: Set up action.yml
run: cp action_ci.yml action.yml
Expand Down Expand Up @@ -82,31 +82,31 @@ jobs:
snapshot:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.0.2
- uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2.0.0
uses: docker/setup-buildx-action@v2
with:
install: true

- name: Login to GitHub Container Registry
uses: docker/login-action@v2.0.0
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker meta
id: meta
uses: docker/metadata-action@v4.0.1
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/artis3n/ansible_galaxy_collection-testartifact
tags: |
type=raw,value=SNAPSHOT-${{ github.sha }}
- name: Build and Push
uses: docker/build-push-action@v3.1.1
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Semver release
uses: technote-space/release-github-actions@v7.2.4
uses: technote-space/release-github-actions@v8
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CLEAN_TARGETS: ''
Expand All @@ -22,22 +22,22 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3.0.2
- uses: actions/checkout@v3

- name: Get the version
run: echo "RELEASE_VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV

- name: Set up QEMU
uses: docker/setup-qemu-action@v2.0.0
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2.0.0
uses: docker/setup-buildx-action@v2
with:
install: true

- name: Docker meta
id: meta
uses: docker/metadata-action@v4.0.1
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/${{ env.IMAGE_NAME }}
Expand All @@ -46,14 +46,14 @@ jobs:
type=raw,value=${{ env.RELEASE_VERSION }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v2.0.0
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and Push
uses: docker/build-push-action@v3.1.1
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64, linux/arm64
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ inputs:
runs:
using: 'docker'
# Takes ~3 minutes to build the container so speed up consumer invocations by using pre-built image
image: docker://ghcr.io/artis3n/ansible_galaxy_collection:v2.8.0
image: docker://ghcr.io/artis3n/ansible_galaxy_collection:v2.8.3
branding:
icon: 'box'
color: 'purple'
2 changes: 1 addition & 1 deletion fake_collection/galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace: artis3n
name: test_resource_do_not_use
version: 2.8.9
version: 2.8.13
readme: README.md
authors:
- Ari Kalfus (@artis3n) <dev@artis3nal.com>
Expand Down
Loading

0 comments on commit 836800c

Please sign in to comment.