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 Dec 13, 2023
1 parent 1f8a651 commit 3368f56
Show file tree
Hide file tree
Showing 9 changed files with 46 additions and 46 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"name": "Node.js & TypeScript",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/typescript-node:0-18",
"image": "mcr.microsoft.com/devcontainers/typescript-node:0-20",
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
"installOhMyZsh": true,
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ on: [pull_request]

env:
RUNNER_TEMP: /tmp
TEST_ARTIFACT_VERSION: 0.10.1
TEST_ARTIFACT_VERSION: 0.10.4

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

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version-file: .node-version
cache: 'npm'
Expand All @@ -31,7 +31,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- 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
- uses: actions/checkout@v4

- 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
- uses: actions/checkout@v4

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

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

- name: Docker meta
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
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@v4
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,22 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

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

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

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

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

- name: Build and Push
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64, linux/arm64
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 Ari Kalfus
Copyright (c) 2019 Ari Kalfus

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
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.9.0
image: docker://ghcr.io/artis3n/ansible_galaxy_collection:v2.10.1
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.10.1
version: 2.10.4
readme: README.md
authors:
- Ari Kalfus (@artis3n) <dev@artis3nal.com>
Expand Down
24 changes: 12 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ansible_galaxy_collection",
"version": "2.8.3",
"version": "2.10.1",
"description": "Deploy a collection to Ansible Galaxy",
"main": "dist/index.js",
"scripts": {
Expand All @@ -16,7 +16,7 @@
"docker": "docker build -t artis3n/ansible_galaxy_collection:local ."
},
"engines": {
"node": "~18"
"node": "~20"
},
"repository": {
"type": "git",
Expand All @@ -34,20 +34,20 @@
"@actions/io": "^1.1.1",
"class-validator": "^0.14.0",
"js-yaml": "^4.1.0",
"semver": "^7.3.7"
"semver": "^7.5.0"
},
"devDependencies": {
"@babel/core": "^7.21.4",
"@babel/preset-env": "^7.21.4",
"@types/jest": "^29.5.0",
"@babel/core": "^7.21.5",
"@babel/preset-env": "^7.22.4",
"@types/jest": "^29.5.2",
"@types/js-yaml": "^4.0.2",
"@types/node": "^18.14.2",
"@types/semver": "^7.3.12",
"@types/validator": "^13.7.14",
"@types/node": "^20.10.4",
"@types/semver": "^7.5.0",
"@types/validator": "^13.7.17",
"jest": "^29.5.0",
"jest-circus": "^29.5.0",
"prettier": "^2.3.2",
"ts-jest": "^29.0.3",
"typescript": "^4.8.3"
"prettier": "^3.1.1",
"ts-jest": "^29.1.0",
"typescript": "^5.0.4"
}
}
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ansible==7.5.0
distlib==0.3.6
ansible==9.1.0
distlib==0.3.8

0 comments on commit 3368f56

Please sign in to comment.