Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker: make multi-platform atlantis image #1943

Merged
merged 5 commits into from
Dec 17, 2021
Merged

Conversation

chenrui333
Copy link
Member

No description provided.

@chenrui333 chenrui333 marked this pull request as ready for review December 16, 2021 05:11
@chenrui333 chenrui333 requested a review from a team as a code owner December 16, 2021 05:11
@chenrui333
Copy link
Member Author

looks good, gonna pull the testing-env update per this commit to fix PR build issue.

https://github.com/runatlantis/atlantis/pkgs/container/atlantis/11917973?tag=dev
image

chenrui333 added a commit that referenced this pull request Dec 17, 2021
relates to #1943

Signed-off-by: Rui Chen <rui@chenrui.dev>
Signed-off-by: Rui Chen <rui@chenrui.dev>
@chenrui333 chenrui333 changed the title docker: make atlantis image multi-platform avail docker: make multi-platform atlantis image Dec 17, 2021
@chenrui333 chenrui333 merged commit 45e8513 into master Dec 17, 2021
@chenrui333 chenrui333 deleted the docker-multi-platform branch December 17, 2021 19:41
chenrui333 added a commit that referenced this pull request Dec 30, 2021
…-test-job

* 'master' of github.com:runatlantis/atlantis: (79 commits)
  release: 0.18.0 (#1965)
  feat: streaming terraform logs in real-time (#1937)
  build(deps): bump github.com/hashicorp/go-getter from 1.5.9 to 1.5.10 (#1961)
  docs: update website links (#1964)
  docs: clarify example for `--azuredevops-token` flag (#1712)
  docs: typo in heading level (#1960)
  fix: fallback to default TF version in apply step (#1931)
  feat: add GitHub team allowlist configuration option (#1694)
  Add in Dockerfile support for last Terraform 1.0.x version in AVAILABLE_TERRAFORM_VERSIONS (#1957)
  build(deps): bump github.com/spf13/viper from 1.10.0 to 1.10.1 (#1956)
  deps: terraform 1.1.2 (#1952)
  release: 0.17.6 (#1947)
  docker: make multi-platform atlantis image (#1943)
  docker(testing): fix arch ref for `linux/arm/v7`
  docker(testing): updating image build process
  docs: fix policy check documentation examples (#1945)
  build: make multi-platform image for testing-env
  atlantis-base: fix context
  atalntis-base: update platforms and path trigger
  atlantis-base: update platforms
  ...
@Tenzer
Copy link
Contributor

Tenzer commented Jan 5, 2022

I noticed the Docker image build job have failed since this change, so I've made a PR which I think fixes it here: #1975.

chenrui333 pushed a commit that referenced this pull request Jan 5, 2022
…es (#1975)

#1943 changed the way Docker images
were built in GitHub Actions so multi-architecture Docker images now are built,
but it unfortunately included a bug which means it hasn't worked yet on any
released version of Atlantis.

The problem is the change expected environment variables to be replaced in the
regular YAML code instead of just the commands which are run.

This attempts to fix that by instead using the template language available to
access the same environment variable.
This is based on the example provided in the documentation here:
https://docs.github.com/en/actions/learn-github-actions/environment-variables.
krrrr38 pushed a commit to krrrr38/atlantis that referenced this pull request Dec 16, 2022
relates to runatlantis#1943

Signed-off-by: Rui Chen <rui@chenrui.dev>
krrrr38 pushed a commit to krrrr38/atlantis that referenced this pull request Dec 16, 2022
* docker: multi-platform image for atlantis

* workflow: update for multi platform image builds

Signed-off-by: Rui Chen <rui@chenrui.dev>

* update branch trigger for testing dev image

Signed-off-by: Rui Chen <rui@chenrui.dev>

* revert to use testing-env:2021.08.31

Signed-off-by: Rui Chen <rui@chenrui.dev>

* Revert "update branch trigger for testing dev image"

This reverts commit 266e04d.
krrrr38 pushed a commit to krrrr38/atlantis that referenced this pull request Dec 16, 2022
…es (runatlantis#1975)

runatlantis#1943 changed the way Docker images
were built in GitHub Actions so multi-architecture Docker images now are built,
but it unfortunately included a bug which means it hasn't worked yet on any
released version of Atlantis.

The problem is the change expected environment variables to be replaced in the
regular YAML code instead of just the commands which are run.

This attempts to fix that by instead using the template language available to
access the same environment variable.
This is based on the example provided in the documentation here:
https://docs.github.com/en/actions/learn-github-actions/environment-variables.
@chenrui333 chenrui333 added docker Pull requests that update Docker code docker-multi-platform labels May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docker Pull requests that update Docker code docker-multi-platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants